Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

memoizerific

Package Overview
Dependencies
Maintainers
1
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

memoizerific - npm Package Compare versions

Comparing version 1.11.0 to 1.11.1

4

package.json
{
"name": "memoizerific",
"version": "1.11.0",
"version": "1.11.1",
"description": "Fast, small, efficient JavaScript memoization lib to memoize JS functions",

@@ -31,3 +31,3 @@ "author": "Baz <baz@thinkloop.com>",

"build": "npm run -s build:all",
"publish_to_npm": "npm version minor && git push && git push --tags && npm publish",
"publish_to_npm": "npm version patch && git push && git push --tags && npm publish",
"_": "",

@@ -34,0 +34,0 @@ "test:map": "FORCE_SIMILAR_INSTEAD_OF_MAP=false JASMINE_CONFIG_PATH=./jasmine.json jasmine",

@@ -84,3 +84,3 @@ # Memoizerific.js

## Strict Equality
## Equality
Arguments are compared using strict equality.

@@ -101,3 +101,3 @@ A complex object will only trigger a cache hit if it refers to the exact same object in memory,

This is because a new object is being created on each invocation, rather than the same object being passed in.
To _fix_ it, the argument can be saved in a common variable:
To _fix_ this, the argument can be saved in a common variable:

@@ -131,3 +131,3 @@ ```javascript

## Comparison
## Compared
There are many memoization libs available for JavaScript. Some of them have specialized use-cases, such as memoizing file-system access, or server async requests.

@@ -134,0 +134,0 @@ While others, such as this one, tackle the more general case of memoizing standard synchronous functions.

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc