how to find a object key from object property 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);