UNPKG

imma

Version:

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

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