1.0.0 • Published 8 years ago
arrayzipper v1.0.0
arrayZipper
zip two or more arrays to one
Usage:
var arrayZipper = require('arrayzipper'),
myArrays = [
[0, 3, 6, 8],
[1, 4, 7],
[2, 5]
],
resultArray = arrayZipper(myArrays);
console.log(resultArray);// -> [0, 1, 2, 3, 4, 5, 6, 7, 8]
var arrayZipper = require('arrayzipper'),
myArrays = [
['h', 'l', 'w', 'r', 'd', '!'],
['e', 'o',],
['l', ' ', 'o', 'l']
],
resultArray = arrayZipper(myArrays);
console.log(resultArray);// -> [ 'h', 'e', 'l', 'l', 'o', ' ', 'w', 'o', 'r', 'l', 'd', '!' ]
This repo is commitizen
friendly. Find more information about that here.
Author Christian Heyn