Skip to content

micro-js/zip

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

zip

Build status Git tag NPM version Code style

Zip two or more arrays together

Installation

$ npm install @f/zip

Usage

var zip = require('@f/zip')

zip([1, 2], [3, 4])         // -> [[1, 3], [2, 4]]
zip([1, 2], [3, 4], [5, 6]) // -> [[1, 3, 5], [2, 4, 6]]

API

zip(...arrays)

  • arrays - The arrays to zip together

Returns: The zipped arrays

License

MIT

About

Zip two or more arrays together

Resources

Stars

Watchers

Forks

Packages

No packages published