MyCrypto/common/utils/helpers.ts
Daniel Ternyak cc391f551a Refactor Languages / Fix RPC Node Regression (#239)
* simplify language dropdown; move language mapping to separate file (json)
* re-add rpc options (removed in bad merge)
2017-09-26 16:03:38 -07:00

4 lines
114 B
TypeScript

export function getKeyByValue(object, value) {
return Object.keys(object).find(key => object[key] === value);
}