Skip to content
On this page

zip

Creates an array of grouped elements.

Example

zip([1, 2], ['a', 'b']) // => [[1, 'a'], [2, 'b']]

Playground

const { zip } = require('rhodash')
zip([1, 2], ['a', 'b']) // => [[1, 'a'], [2, 'b']]