diff options
author | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-21 19:56:14 +0800 |
---|---|---|
committer | Leonid Logvinov <logvinov.leon@gmail.com> | 2017-06-21 19:56:14 +0800 |
commit | 40a7be0690c81d2e42543aa075ef8da6606e7b7e (patch) | |
tree | 73231f3671133364b53d55074f27e03bd61a1d38 /src/types.ts | |
parent | 096d3bdb26921cb3e7d05e65dc286ddf49f98a8a (diff) | |
download | dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.gz dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.bz2 dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.lz dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.xz dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.tar.zst dexon-0x-contracts-40a7be0690c81d2e42543aa075ef8da6606e7b7e.zip |
Use different lodash import syntax which allows to include only used functions
Diffstat (limited to 'src/types.ts')
-rw-r--r-- | src/types.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/types.ts b/src/types.ts index 7f52970e6..e08d7f963 100644 --- a/src/types.ts +++ b/src/types.ts @@ -1,10 +1,10 @@ -import * as _ from 'lodash'; +import reduce from 'lodash/reduce'; import * as Web3 from 'web3'; // Utility function to create a K:V from a list of strings // Adapted from: https://basarat.gitbooks.io/typescript/content/docs/types/literal-types.html function strEnum(values: string[]): {[key: string]: string} { - return _.reduce(values, (result, key) => { + return reduce(values, (result, key) => { result[key] = key; return result; }, Object.create(null)); |