Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 508 Bytes

unzip.md

File metadata and controls

32 lines (20 loc) · 508 Bytes

arrays.unzip

unzip(array)

Performs a manipulation to undo the zip command

Arguments

  1. array (Array): input array

Returns

(Array): an array of unique values

Example

const result = arrays.unzip([['a', 'b', 'c'], [1, 2, 3], [true, false, true]]);
console.log(result);
> [['a', 1, true], ['b', 2, false], ['c', 3, true]]