arrayzipper

1.0.0 • Public • Published

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

/arrayzipper/

    Package Sidebar

    Install

    npm i arrayzipper

    Weekly Downloads

    2

    Version

    1.0.0

    License

    MIT

    Last publish

    Collaborators

    • christianheyn