Reduce production built size

This commit is contained in:
uwap 2018-02-14 06:23:48 +01:00
parent a96fa1622b
commit f4d1cb7e1e
13 changed files with 56 additions and 38 deletions

View file

@ -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;