UNPKG

@mattseligman/lotide

Version:

Lotide is a mini clone of the Lodash Library to practice crating a personal npm package. It's like lodash, but without all that extra stuff. Just the things you need to start your project.

13 lines (9 loc) 205 B
const findKey = function(object, callback) { for (let key in object) { if (callback(object[key])) { console.log(key); return key; } } }; module.exports = findKey;