Snippet format update
To match the starter (for the migration)
This commit is contained in:
@ -1,4 +1,7 @@
|
||||
### zip
|
||||
---
|
||||
title: zip
|
||||
tags: array,intermediate
|
||||
---
|
||||
|
||||
Creates an array of elements, grouped based on the position in the original arrays.
|
||||
|
||||
@ -18,4 +21,4 @@ const zip = (...arrays) => {
|
||||
```js
|
||||
zip(['a', 'b'], [1, 2], [true, false]); // [['a', 1, true], ['b', 2, false]]
|
||||
zip(['a'], [1, 2], [true, false]); // [['a', 1, true], [undefined, 2, false]]
|
||||
```
|
||||
```
|
||||
Reference in New Issue
Block a user