let item ={ "1":5, "2":4, "3":3 } function getKeyByValue(object, value) { return Object.keys(object).find(key => object[key] === value); } console.log(getKeyByValue(item, 4)) // 결과값 key 값이 2