1.0.0 • Published 7 years ago

@f/zip v1.0.0

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

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