Comparing version 0.1.0 to 0.1.1
@@ -6,3 +6,3 @@ 'use strict'; | ||
var cacheKey = opts.cacheKey || function (x) { | ||
if (arguments.length === 1 && x === null || x === undefined || (typeof x !== 'function' && typeof x !== 'object')) { | ||
if (arguments.length === 1 && (x === null || x === undefined || (typeof x !== 'function' && typeof x !== 'object'))) { | ||
return x; | ||
@@ -9,0 +9,0 @@ } |
{ | ||
"name": "mem", | ||
"version": "0.1.0", | ||
"description": "Memoize functions - an optimization technique used to speed up consecutive function calls by caching the result of calls with identical inputs", | ||
"version": "0.1.1", | ||
"description": "Memoize functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "repository": "sindresorhus/mem", |
# mem [![Build Status](https://travis-ci.org/sindresorhus/mem.svg?branch=master)](https://travis-ci.org/sindresorhus/mem) | ||
> [Memoize](https://en.wikipedia.org/wiki/Memoization) functions - an optimization technique used to speed up consecutive function calls by caching the result of calls with identical inputs | ||
> [Memoize](https://en.wikipedia.org/wiki/Memoization) functions - An optimization used to speed up consecutive function calls by caching the result of calls with identical input | ||
@@ -5,0 +5,0 @@ Requires at least Node.js 0.12, unless you provide your own `cache` store. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5032