UNPKG

imma

Version:

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

8 lines (5 loc) 191 B
'use strict' const some = require('./some') const createPredicate = fn => value => !fn(value) const every = module.exports = (iterable, fn) => !some(iterable, createPredicate(fn))