mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-06 09:47:48 +00:00
Use destructuring in code samples.
This commit is contained in:
@@ -22,7 +22,7 @@ const nativeMax = Math.max;
|
||||
* { 'user': 'pebbles', 'active': true }
|
||||
* ];
|
||||
*
|
||||
* findIndex(users, o => o.user == 'barney');
|
||||
* findIndex(users, ({ user }) => user == 'barney');
|
||||
* // => 0
|
||||
*/
|
||||
function findIndex(array, predicate, fromIndex) {
|
||||
|
||||
Reference in New Issue
Block a user