Open jimmywarting opened 7 years ago
Think lodash just brings unnecessary dependencies and makes the final source just becomes larger
Example you can do instead:
// _.forOwn(obj, (val, key) => { for (let [key, val] of Object.entries(obj)) { ... } // if (_.isFunction(update)) { typeof update === 'function' // if (_.isArray(val)) { Array.isArray(val) // if (_.isObject(val)) { typeof val === 'object' // _.forEach(array, (t, i) => { array.forEach // _.filter(list, t => t.id !== id); array.filter
@jimmywarting please feel to make a PR! Also we could import only used functions from lodash to deacrease output bundle or use babel-lodash-plugin.
Think lodash just brings unnecessary dependencies and makes the final source just becomes larger
Example you can do instead: