Skip to content
On this page

zipObject

Creates an object from array of keys and array of values.

Example

zipObject(['a', 'b'], [1, 2]) // => { a: 1, b: 2 }

Playground

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