mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-03 08:37:49 +00:00
Remove semicolons.
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import baseFindKey from './.internal/baseFindKey.js';
|
||||
import baseForOwnRight from './.internal/baseForOwnRight.js';
|
||||
import baseFindKey from './.internal/baseFindKey.js'
|
||||
import baseForOwnRight from './.internal/baseForOwnRight.js'
|
||||
|
||||
/**
|
||||
* This method is like `findKey` except that it iterates over elements of
|
||||
@@ -18,13 +18,13 @@ import baseForOwnRight from './.internal/baseForOwnRight.js';
|
||||
* 'barney': { 'age': 36, 'active': true },
|
||||
* 'fred': { 'age': 40, 'active': false },
|
||||
* 'pebbles': { 'age': 1, 'active': true }
|
||||
* };
|
||||
* }
|
||||
*
|
||||
* findLastKey(users, ({ age }) => age < 40);
|
||||
* findLastKey(users, ({ age }) => age < 40)
|
||||
* // => returns 'pebbles' assuming `findKey` returns 'barney'
|
||||
*/
|
||||
function findLastKey(object, predicate) {
|
||||
return baseFindKey(object, predicate, baseForOwnRight);
|
||||
return baseFindKey(object, predicate, baseForOwnRight)
|
||||
}
|
||||
|
||||
export default findLastKey;
|
||||
export default findLastKey
|
||||
|
||||
Reference in New Issue
Block a user