UNPKG

imma

Version:

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

8 lines (7 loc) 167 B
'use strict' const some = module.exports = (object, fn) => { for (let key in object) { if (fn(object[key], key, object)) return true } return false }