Answers for "js find value of property and return it's key"

0

js find value of property and return it's key

const getKeyByValue = (obj, value) => 
        Object.keys(obj).find(key => obj[key] === value);
Posted by: Guest on April-23-2021

Code answers related to "js find value of property and return it's key"

Code answers related to "Javascript"

Browse Popular Code Answers by Language