mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-04 17:07:49 +00:00
Use destructuring in code samples.
This commit is contained in:
@@ -19,7 +19,7 @@ import baseForOwnRight from './.internal/baseForOwnRight.js';
|
||||
* 'pebbles': { 'age': 1, 'active': true }
|
||||
* };
|
||||
*
|
||||
* findLastKey(users, o => o.age < 40);
|
||||
* findLastKey(users, ({ age }) => age < 40);
|
||||
* // => returns 'pebbles' assuming `findKey` returns 'barney'
|
||||
*/
|
||||
function findLastKey(object, predicate) {
|
||||
|
||||
Reference in New Issue
Block a user