Reduce production built size
This commit is contained in:
parent
a96fa1622b
commit
f4d1cb7e1e
13 changed files with 56 additions and 38 deletions
|
|
@ -1,8 +1,8 @@
|
|||
// @flow
|
||||
import _ from "lodash";
|
||||
import findKey from "lodash/findKey";
|
||||
|
||||
const keyOf = <a, b> (map: Map<a, b>, value: b): ?a => (
|
||||
_.findKey(map, (x) => x === value)
|
||||
findKey(map, (x) => x === value)
|
||||
);
|
||||
|
||||
export default keyOf;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue