UNPKG

es-toolkit

Version:

A state-of-the-art, high-performance JavaScript utility library with a small bundle size and strong type annotations.

12 lines (9 loc) 272 B
import { assignValue } from '../_internal/assignValue.mjs'; function zipObject(keys = [], values = []) { const result = {}; for (let i = 0; i < keys.length; i++) { assignValue(result, keys[i], values[i]); } return result; } export { zipObject };