通过val 找key

102 阅读1分钟
handleFindKey = (obj, value, compare = (a, b) => a === b) => {  return Object.keys(obj).find((i) => compare(obj[i], value));};