< BACK

Javascript tips, tricks and code snippets

Javascript: find key in object by its value

Based on this posting:

let found = Object.keys(object).find(key => object[key] === value);