const findingKey = (obj , value) => (Object.keys(obj).find(key => value === obj[key])) console.log(findingKey({id:"123",name:"Alice"},"Alice");