function getKeyByValue(object, value) { return Object.keys(object).find(key => object[key] === value); }. ES6, no prototype mutations or external libraries.
確定! 回上一頁