Get rid of lodash

This commit is contained in:
boryslevytskyi
2017-05-13 21:21:02 +03:00
parent 4e30d90c58
commit 10f0da182e
2 changed files with 1 additions and 4 deletions

View File

@@ -49,7 +49,6 @@
"babel-preset-es2015": "^6.18.0",
"babel-preset-react": "^6.16.0",
"body-parser": "^1.15.2",
"lodash": "^4.17.2",
"react": "^15.4.0",
"react-dom": "^15.4.0"
}

View File

@@ -1,5 +1,3 @@
import * as _ from 'lodash';
var expression = {
factories:[],
canParse: function(string) {
@@ -240,7 +238,7 @@ export class ListOfNumbersExpression {
constructor(expressionString, numbers) {
this.expressionString = expressionString;
this.numbers = numbers;
this.maxBitsLegnth = _.chain(numbers).map(n => n.lengthInBits).reduce((n , c) => n >= c ? n : c, 0).value();
this.maxBitsLegnth = numbers.map(n => n.lengthInBits).reduce((n , c) => n >= c ? n : c, 0);
}
toString() {