Revert "Use different lodash import syntax which allows to include only used functions"

This commit is contained in:
Leonid
2017-06-22 16:21:56 +02:00
committed by GitHub
parent 25a9ba90f5
commit 94cab6f694
15 changed files with 76 additions and 93 deletions

View File

@@ -1,10 +1,10 @@
import reduce = require('lodash/reduce');
import * as _ from 'lodash';
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));