UNPKG

@tommymynnson/lotide

Version:

A mini clone of the [Lodash](https://lodash.com) library.

11 lines (9 loc) 192 B
const findKeyByValue = (object, value) => { for (const key in object) { if (object[key] === value) { return key; } } return undefined; }; module.exports = findKeyByValue;