Revert "Use different lodash import syntax which allows to include only used functions"
This commit is contained in:
@@ -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));
|
||||
|
Reference in New Issue
Block a user