Zip two or more arrays together
$ npm install @f/zip
var zip = require('@f/zip')
zip([1, 2], [3, 4]) // -> [[1, 3], [2, 4]]
zip([1, 2], [3, 4], [5, 6]) // -> [[1, 3, 5], [2, 4, 6]]
arrays
- The arrays to zip together
Returns: The zipped arrays
MIT