mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-08 10:17:48 +00:00
Remove references to _.
This commit is contained in:
@@ -2,11 +2,10 @@ import baseFindKey from './_baseFindKey.js';
|
||||
import baseForOwnRight from './_baseForOwnRight.js';
|
||||
|
||||
/**
|
||||
* This method is like `_.findKey` except that it iterates over elements of
|
||||
* This method is like `findKey` except that it iterates over elements of
|
||||
* a collection in the opposite order.
|
||||
*
|
||||
* @static
|
||||
* @memberOf _
|
||||
* @since 2.0.0
|
||||
* @category Object
|
||||
* @param {Object} object The object to inspect.
|
||||
@@ -21,8 +20,8 @@ import baseForOwnRight from './_baseForOwnRight.js';
|
||||
* 'pebbles': { 'age': 1, 'active': true }
|
||||
* };
|
||||
*
|
||||
* _.findLastKey(users, function(o) { return o.age < 40; });
|
||||
* // => returns 'pebbles' assuming `_.findKey` returns 'barney'
|
||||
* findLastKey(users, function(o) { return o.age < 40; });
|
||||
* // => returns 'pebbles' assuming `findKey` returns 'barney'
|
||||
*/
|
||||
function findLastKey(object, predicate) {
|
||||
return baseFindKey(object, predicate, baseForOwnRight);
|
||||
|
||||
Reference in New Issue
Block a user