MCPcopy Index your code
hub / github.com/tdewolff/minify / arraySome

Function arraySome

_benchmarks/sample_victory.js:13044–13054  ·  view source on GitHub ↗

* A specialized version of `_.some` for arrays without support for iteratee * shorthands. * * @private * @param {Array} [array] The array to iterate over. * @param {Function} predicate The function invoked per iteration. * @returns {boolean} Returns `true` if any element passes the predicate c

(array, predicate)

Source from the content-addressed store, hash-verified

13042 * else `false`.
13043 */
13044function arraySome(array, predicate) {
13045 var index = -1,
13046 length = array == null ? 0 : array.length;
13047
13048 while (++index < length) {
13049 if (predicate(array[index], index, array)) {
13050 return true;
13051 }
13052 }
13053 return false;
13054}
13055
13056module.exports = arraySome;
13057

Callers 1

equalArraysFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…