UNPKG

imma

Version:

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

8 lines (6 loc) 210 B
'use strict' const objectForEach = require('../object/forEach') const forEach = module.exports = (iterable, fn) => Array.isArray(iterable) ? iterable.forEach(fn) : objectForEach(iterable, fn)