mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-07 10:07:48 +00:00
Use destructuring in code samples.
This commit is contained in:
@@ -23,7 +23,7 @@ const nativeMin = Math.min;
|
||||
* { 'user': 'pebbles', 'active': false }
|
||||
* ];
|
||||
*
|
||||
* findLastIndex(users, o => o.user == 'pebbles');
|
||||
* findLastIndex(users, ({ user }) => user == 'pebbles');
|
||||
* // => 2
|
||||
*/
|
||||
function findLastIndex(array, predicate, fromIndex) {
|
||||
|
||||
Reference in New Issue
Block a user