UNPKG

imma

Version:

A collection of functions for dealing with native arrays and objects immutably

9 lines (7 loc) 207 B
'use strict' const arrayZip = require('../array/zip') const objectZip = require('../object/zip') const zip = module.exports = (a, b) => Array.isArray(a) ? arrayZip(a, b) : objectZip(a, b)