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