UNPKG

imma

Version:

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

9 lines (7 loc) 247 B
'use strict' const arrayZipWith = require('../array/zipWith') const objectZipWith = require('../object/zipWith') const zipWith = module.exports = (a, b, fn) => Array.isArray(a) ? arrayZipWith(a, b, fn) : objectZipWith(a, b, fn)