MCPcopy Index your code
hub / github.com/deployd/deployd / arraySome

Function arraySome

test-app/public/sinon.js:11346–11356  ·  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` i

(array, predicate)

Source from the content-addressed store, hash-verified

11344 * else `false`.
11345 */
11346 function arraySome(array, predicate) {
11347 var index = -1,
11348 length = array == null ? 0 : array.length;
11349
11350 while (++index < length) {
11351 if (predicate(array[index], index, array)) {
11352 return true;
11353 }
11354 }
11355 return false;
11356 }
11357
11358 /**
11359 * Gets the size of an ASCII `string`.

Callers 1

equalArraysFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected