* 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)
| 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 |
no test coverage detected