lodash.some
Advanced tools
Comparing version 4.2.2 to 4.3.0
57
index.js
/** | ||
* lodash 4.2.2 (Custom Build) <https://lodash.com/> | ||
* lodash 4.3.0 (Custom Build) <https://lodash.com/> | ||
* Build: `lodash modularize exports="npm" -o ./` | ||
* Copyright 2012-2016 The Dojo Foundation <http://dojofoundation.org/> | ||
* Copyright jQuery Foundation and other contributors <https://jquery.org/> | ||
* Released under MIT license <https://lodash.com/license> | ||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE> | ||
* Copyright 2009-2016 Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
* Available under MIT license <https://lodash.com/license> | ||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors | ||
*/ | ||
@@ -29,3 +29,4 @@ var baseEach = require('lodash._baseeach'), | ||
* @param {Function} predicate The function invoked per iteration. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, else `false`. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, | ||
* else `false`. | ||
*/ | ||
@@ -86,3 +87,4 @@ function arraySome(array, predicate) { | ||
* @param {Function} predicate The function invoked per iteration. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, else `false`. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, | ||
* else `false`. | ||
*/ | ||
@@ -102,4 +104,5 @@ function baseSome(collection, predicate) { | ||
* | ||
* **Note:** This function is used to avoid a [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) | ||
* that affects Safari on at least iOS 8.1-8.3 ARM64. | ||
* **Note:** This function is used to avoid a | ||
* [JIT bug](https://bugs.webkit.org/show_bug.cgi?id=142792) that affects | ||
* Safari on at least iOS 8.1-8.3 ARM64. | ||
* | ||
@@ -119,3 +122,4 @@ * @private | ||
* @param {*} object The potential iteratee object argument. | ||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, else `false`. | ||
* @returns {boolean} Returns `true` if the arguments are from an iteratee call, | ||
* else `false`. | ||
*/ | ||
@@ -128,4 +132,5 @@ function isIterateeCall(value, index, object) { | ||
if (type == 'number' | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object)) { | ||
? (isArrayLike(object) && isIndex(index, object.length)) | ||
: (type == 'string' && index in object) | ||
) { | ||
return eq(object[index], value); | ||
@@ -143,7 +148,10 @@ } | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Collection | ||
* @param {Array|Object} collection The collection to iterate over. | ||
* @param {Function|Object|string} [predicate=_.identity] The function invoked per iteration. | ||
* @param- {Object} [guard] Enables use as an iteratee for functions like `_.map`. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, else `false`. | ||
* @param {Array|Function|Object|string} [predicate=_.identity] | ||
* The function invoked per iteration. | ||
* @param- {Object} [guard] Enables use as an iteratee for methods like `_.map`. | ||
* @returns {boolean} Returns `true` if any element passes the predicate check, | ||
* else `false`. | ||
* @example | ||
@@ -180,3 +188,4 @@ * | ||
/** | ||
* Performs a [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* Performs a | ||
* [`SameValueZero`](http://ecma-international.org/ecma-262/6.0/#sec-samevaluezero) | ||
* comparison between two values to determine if they are equivalent. | ||
@@ -186,2 +195,3 @@ * | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -220,6 +230,8 @@ * @param {*} value The value to compare. | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @type {Function} | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -248,2 +260,3 @@ * | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
@@ -275,5 +288,7 @@ * @param {*} value The value to check. | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is correctly classified, | ||
* else `false`. | ||
* @example | ||
@@ -298,9 +313,12 @@ * | ||
* | ||
* **Note:** This function is loosely based on [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* **Note:** This function is loosely based on | ||
* [`ToLength`](http://ecma-international.org/ecma-262/6.0/#sec-tolength). | ||
* | ||
* @static | ||
* @memberOf _ | ||
* @since 4.0.0 | ||
* @category Lang | ||
* @param {*} value The value to check. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, else `false`. | ||
* @returns {boolean} Returns `true` if `value` is a valid length, | ||
* else `false`. | ||
* @example | ||
@@ -331,2 +349,3 @@ * | ||
* @memberOf _ | ||
* @since 0.1.0 | ||
* @category Lang | ||
@@ -333,0 +352,0 @@ * @param {*} value The value to check. |
{ | ||
"name": "lodash.some", | ||
"version": "4.2.2", | ||
"version": "4.3.0", | ||
"description": "The lodash method `_.some` exported as a module.", | ||
@@ -19,4 +19,4 @@ "homepage": "https://lodash.com/", | ||
"lodash._baseeach": "~4.1.0", | ||
"lodash._baseiteratee": "~4.5.0" | ||
"lodash._baseiteratee": "~4.6.0" | ||
} | ||
} |
@@ -1,2 +0,2 @@ | ||
# lodash.some v4.2.2 | ||
# lodash.some v4.3.0 | ||
@@ -18,2 +18,2 @@ The [lodash](https://lodash.com/) method `_.some` exported as a [Node.js](https://nodejs.org/) module. | ||
See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/4.2.2-npm-packages/lodash.some) for more details. | ||
See the [documentation](https://lodash.com/docs#some) or [package source](https://github.com/lodash/lodash/blob/4.3.0-npm-packages/lodash.some) for more details. |
Sorry, the diff of this file is not supported yet
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
Mixed license
License(Experimental) Package contains multiple licenses.
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
12740
339
1
+ Addedlodash._baseiteratee@4.6.1(transitive)
+ Addedlodash._stringtopath@4.7.1(transitive)
- Removedlodash._baseiteratee@4.5.2(transitive)
Updatedlodash._baseiteratee@~4.6.0