* 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)
| 13042 | * else `false`. |
| 13043 | */ |
| 13044 | function 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 | |
| 13056 | module.exports = arraySome; |
| 13057 |
no outgoing calls
no test coverage detected
searching dependent graphs…