how to get the key by value in javascriopt code example Example: js find key by value in object Object.keys(object).find(key => object[key] === value)