Update formatting
This commit is contained in:
@ -8,7 +8,7 @@ lastUpdated: 2020-09-15T16:28:04+03:00
|
||||
Deep maps an object's keys.
|
||||
|
||||
- Creates an object with the same values as the provided object and keys generated by running the provided function for each key.
|
||||
- Use `Object.keys(obj)` to iterate over the object's keys.
|
||||
- Use `Object.keys()` to iterate over the object's keys.
|
||||
- Use `Array.prototype.reduce()` to create a new object with the same values and mapped keys using `fn`.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user