UNPKG

@emilywaters/lotide

Version:

Lotide is an equality assertion tool, a simplistic model of Lodash

9 lines (8 loc) 163 B
const findKey = (object, callback) => { for (const item in object) { if (callback(object[item])) { return item; } } }; module.exports = findKey;