Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### zipObject
|
||||
---
|
||||
title: zipObject
|
||||
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.
|
||||
|
||||
@ -12,4 +15,4 @@ const zipObject = (props, values) =>
|
||||
```js
|
||||
zipObject(['a', 'b', 'c'], [1, 2]); // {a: 1, b: 2, c: undefined}
|
||||
zipObject(['a', 'b'], [1, 2, 3]); // {a: 1, b: 2}
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user