javascript find object property by key code example
Example: js find value of property and return it's key
const getKeyByValue = (obj, value) =>
Object.keys(obj).find(key => obj[key] === value);
const getKeyByValue = (obj, value) =>
Object.keys(obj).find(key => obj[key] === value);