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

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.0
    3
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.0
    3
  • 0.0.3
    0
  • 0.0.2
    0
  • 0.0.1
    0

Package Sidebar

Install

npm i arrayzipper

Weekly Downloads

3

Version

1.0.0

License

MIT

Last publish

Collaborators

  • christianheyn