mirror of
https://github.com/whoisclebs/lodash.git
synced 2026-02-02 08:07:50 +00:00
Use destructuring in code samples.
This commit is contained in:
@@ -20,7 +20,7 @@ import baseForOwn from './.internal/baseForOwn.js';
|
||||
* 'pebbles': { 'user': 'pebbles', 'age': 1 }
|
||||
* };
|
||||
*
|
||||
* mapValues(users, o => o.age);
|
||||
* mapValues(users, ({ age }) => age);
|
||||
* // => { 'fred': 40, 'pebbles': 1 } (iteration order is not guaranteed)
|
||||
*/
|
||||
function mapValues(object, iteratee) {
|
||||
|
||||
Reference in New Issue
Block a user