1.0.0 • Published 8 years ago

arrayzipper v1.0.0

Weekly downloads
3
License
MIT
Repository
github
Last release
8 years ago

arrayZipper

Build Status Commitizen friendly

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

1.0.0

8 years ago

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago