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