MCPcopy Create free account
hub / github.com/RubyLouvre/anu / arraySome

Function arraySome

test/babel.js:50961–50971  ·  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 predi

(array, predicate)

Source from the content-addressed store, hash-verified

50959 * else `false`.
50960 */
50961 function arraySome(array, predicate) {
50962 var index = -1,
50963 length = array == null ? 0 : array.length;
50964
50965 while (++index < length) {
50966 if (predicate(array[index], index, array)) {
50967 return true;
50968 }
50969 }
50970 return false;
50971 }
50972
50973 module.exports = arraySome;
50974

Callers 1

equalArraysFunction · 0.85

Calls 1

predicateFunction · 0.85

Tested by

no test coverage detected