MCPcopy
hub / github.com/lodash/lodash / arraySome

Function arraySome

lodash.js:736–746  ·  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

(array, predicate)

Source from the content-addressed store, hash-verified

734 * else `false`.
735 */
736 function arraySome(array, predicate) {
737 var index = -1,
738 length = array == null ? 0 : array.length;
739
740 while (++index < length) {
741 if (predicate(array[index], index, array)) {
742 return true;
743 }
744 }
745 return false;
746 }
747
748 /**
749 * Gets the size of an ASCII `string`.

Callers 1

equalArraysFunction · 0.85

Calls 1

predicateFunction · 0.50

Tested by

no test coverage detected