UNPKG

imma

Version:

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

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