* 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)
| 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`. |