* Checks if `predicate` returns truthy for **any** element of `collection`. * Iteration is stopped once `predicate` returns truthy. The predicate is * invoked with three arguments: (value, index|key, collection). * * @static * @memberOf _ * @since 0.1.0 * @category
(collection, predicate, guard)
| 9989 | * // => true |
| 9990 | */ |
| 9991 | function some(collection, predicate, guard) { |
| 9992 | var func = isArray(collection) ? arraySome : baseSome; |
| 9993 | if (guard && isIterateeCall(collection, predicate, guard)) { |
| 9994 | predicate = undefined; |
| 9995 | } |
| 9996 | return func(collection, getIteratee(predicate, 3)); |
| 9997 | } |
| 9998 | |
| 9999 | /** |
| 10000 | * Creates an array of elements, sorted in ascending order by the results of |
nothing calls this directly
no test coverage detected