Update snippet descriptions
This commit is contained in:
@ -5,7 +5,7 @@ tags: array,intermediate
|
||||
|
||||
Creates an array of arrays, ungrouping the elements in an array produced by [zip](/js/s/zip).
|
||||
|
||||
- Use `Math.max.apply()` to get the longest subarray in the array, `Array.prototype.map()` to make each element an array.
|
||||
- Use `Math.max()`, `Function.prototype.apply()` to get the longest subarray in the array, `Array.prototype.map()` to make each element an array.
|
||||
- Use `Array.prototype.reduce()` and `Array.prototype.forEach()` to map grouped values to individual arrays.
|
||||
|
||||
```js
|
||||
|
||||
Reference in New Issue
Block a user