Apply new format to snippets and template
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,object,intermediate
|
||||
|
||||
Given an array of valid property identifiers and an array of values, return an object associating the properties to the values.
|
||||
|
||||
Since an object can have undefined values but not undefined property pointers, the array of properties is used to decide the structure of the resulting object using `Array.prototype.reduce()`.
|
||||
- Since an object can have undefined values but not undefined property pointers, the array of properties is used to decide the structure of the resulting object using `Array.prototype.reduce()`.
|
||||
|
||||
```js
|
||||
const zipObject = (props, values) =>
|
||||
|
||||
Reference in New Issue
Block a user