mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 18:07:49 +00:00
Remove references to _.
This commit is contained in:
@@ -2,11 +2,10 @@ import baseFindKey from './_baseFindKey.js';
|
||||
import baseForOwn from './_baseForOwn.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.find` except that it returns the key of the first
|
||||
* This method is like `find` except that it returns the key of the first
|
||||
* element `predicate` returns truthy for instead of the element itself.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 1.1.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to inspect.
|
||||
@@ -21,7 +20,7 @@ import baseForOwn from './_baseForOwn.js';
|
||||
* 'pebbles': { 'age': 1, 'active': true }
|
||||
* };
|
||||
*
|
||||
* _.findKey(users, function(o) { return o.age < 40; });
|
||||
* findKey(users, function(o) { return o.age < 40; });
|
||||
* // => 'barney' (iteration order is not guaranteed)
|
||||
*/
|
||||
function findKey(object, predicate) {
|
||||
|
||||
Reference in New Issue
Block a user