* The base implementation of methods like `_.findKey` and `_.findLastKey`, * without support for iteratee shorthands, which iterates over `collection` * using `eachFunc`. * * @private * @param {Array|Object} collection The collection to inspect. * @param {Function} predicate The fu
(collection, predicate, eachFunc)
| 788 | * @returns {*} Returns the found element or its key, else `undefined`. |
| 789 | */ |
| 790 | function baseFindKey(collection, predicate, eachFunc) { |
| 791 | var result; |
| 792 | eachFunc(collection, function(value, key, collection) { |
| 793 | if (predicate(value, key, collection)) { |
| 794 | result = key; |
| 795 | return false; |
| 796 | } |
| 797 | }); |
| 798 | return result; |
| 799 | } |
| 800 | |
| 801 | /** |
| 802 | * The base implementation of `_.findIndex` and `_.findLastIndex` without |
no test coverage detected