small-array-zip

1.0.2 • Public • Published

small-array-zip

Array.zip in 126 bytes.

NPM: npm i small-array-zip

require('small-array-zip');

const a = [1, 2, 3];
const b = ['a', 'b', 'c']

const c = Array.zip(a, b);
console.log(c); /*
c = [
  [1, 'a'],
  [2, 'b'],
  [3, 'c']
];
*/

Fiddle demo: https://jsfiddle.net/42axj3kt/8/

Readme

Keywords

Package Sidebar

Install

npm i small-array-zip

Weekly Downloads

0

Version

1.0.2

License

MIT

Unpacked Size

2.02 kB

Total Files

4

Last publish

Collaborators

  • olian04