lodash.isequal
Advanced tools
Comparing version 3.0.0 to 3.0.1
19
index.js
/** | ||
* lodash 3.0.0 (Custom Build) <https://lodash.com/> | ||
* lodash 3.0.1 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modern modularize exports="npm" -o ./` | ||
* Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
* Based on Underscore.js 1.7.0 <http://underscorejs.org/LICENSE> | ||
* Based on Underscore.js 1.8.2 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2015 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
@@ -29,6 +29,7 @@ * Available under MIT license <https://lodash.com/license> | ||
* instead. The `customizer` is bound to `thisArg` and invoked with three | ||
* arguments; (value, other [, index|key]). | ||
* arguments: (value, other [, index|key]). | ||
* | ||
* **Note:** This method supports comparing arrays, booleans, `Date` objects, | ||
* numbers, `Object` objects, regexes, and strings. Functions and DOM nodes | ||
* numbers, `Object` objects, regexes, and strings. Objects are compared by | ||
* their own, not inherited, enumerable properties. Functions and DOM nodes | ||
* are **not** supported. Provide a customizer function to extend support | ||
@@ -61,3 +62,5 @@ * for comparing other values. | ||
* _.isEqual(array, other, function(value, other) { | ||
* return _.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/) || undefined; | ||
* if (_.every([value, other], RegExp.prototype.test, /^h(?:i|ello)$/)) { | ||
* return true; | ||
* } | ||
* }); | ||
@@ -76,7 +79,5 @@ * // => true | ||
/** | ||
* Checks if `value` is the language type of `Object`. | ||
* Checks if `value` is the [language type](https://es5.github.io/#x8) of `Object`. | ||
* (e.g. arrays, functions, objects, regexes, `new Number(0)`, and `new String('')`) | ||
* | ||
* **Note:** See the [ES5 spec](https://es5.github.io/#x8) for more details. | ||
* | ||
* @static | ||
@@ -102,5 +103,5 @@ * @memberOf _ | ||
var type = typeof value; | ||
return type == 'function' || (value && type == 'object') || false; | ||
return type == 'function' || (!!value && type == 'object'); | ||
} | ||
module.exports = isEqual; |
Copyright 2012-2015 The Dojo Foundation <http://dojofoundation.org/> | ||
Based on Underscore.js 1.7.0, copyright 2009-2015 Jeremy Ashkenas, | ||
Based on Underscore.js, copyright 2009-2015 Jeremy Ashkenas, | ||
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/> | ||
@@ -4,0 +4,0 @@ |
{ | ||
"name": "lodash.isequal", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "The modern build of lodash’s `_.isEqual` as a module.", | ||
@@ -5,0 +5,0 @@ "homepage": "https://lodash.com/", |
@@ -1,2 +0,2 @@ | ||
# lodash.isequal v3.0.0 | ||
# lodash.isequal v3.0.1 | ||
@@ -20,2 +20,2 @@ The [modern build](https://github.com/lodash/lodash/wiki/Build-Differences) of [lodash’s](https://lodash.com/) `_.isEqual` exported as a [Node.js](http://nodejs.org/)/[io.js](https://iojs.org/) module. | ||
See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.0-npm-packages/lodash.isequal) for more details. | ||
See the [documentation](https://lodash.com/docs#isEqual) or [package source](https://github.com/lodash/lodash/blob/3.0.1-npm-packages/lodash.isequal) 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
6324
99