lodash.memoize
Advanced tools
Comparing version 3.0.1 to 3.0.2
/** | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.2 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
@@ -9,3 +9,2 @@ * Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
*/ | ||
var isFunction = require('lodash.isfunction'); | ||
@@ -143,3 +142,3 @@ /** Used as the `TypeError` message for "Functions" methods. */ | ||
function memoize(func, resolver) { | ||
if (!isFunction(func) || (resolver && !isFunction(resolver))) { | ||
if (typeof func != 'function' || (resolver && typeof resolver != 'function')) { | ||
throw new TypeError(FUNC_ERROR_TEXT); | ||
@@ -146,0 +145,0 @@ } |
{ | ||
"name": "lodash.memoize", | ||
"version": "3.0.1", | ||
"version": "3.0.2", | ||
"description": "The modern build of lodash’s `_.memoize` as a module.", | ||
@@ -18,6 +18,3 @@ "homepage": "https://lodash.com/", | ||
"repository": "lodash/lodash", | ||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" }, | ||
"dependencies": { | ||
"lodash.isfunction": "^3.0.0" | ||
} | ||
"scripts": { "test": "echo \"See https://travis-ci.org/lodash/lodash-cli for testing details.\"" } | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.memoize v3.0.1 | ||
# lodash.memoize v3.0.2 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.memoize` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.memoize) for more details. | ||
See the [documentation](https://lodash.com/docs#memoize) or [package source](https://github.com/lodash/lodash/blob/3.0.2-npm-packages/lodash.memoize) for more details. |
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
0
7424
155
- Removedlodash.isfunction@^3.0.0
- Removedlodash.isfunction@3.0.9(transitive)