Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### mapValues
|
||||
---
|
||||
title: mapValues
|
||||
tags: object,function,intermediate
|
||||
---
|
||||
|
||||
Creates an object with the same keys as the provided object and values generated by running the provided function for each value.
|
||||
|
||||
@ -19,4 +22,4 @@ const users = {
|
||||
pebbles: { user: 'pebbles', age: 1 }
|
||||
};
|
||||
mapValues(users, u => u.age); // { fred: 40, pebbles: 1 }
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user