Skip to content

Commit 84f1398

Browse files
author
Mithun Satheesh
committed
[#93] Remove the lodash method filter and use native Array filter
1 parent d67efcf commit 84f1398

File tree

3 files changed

+2
-9
lines changed

3 files changed

+2
-9
lines changed

lib/node-rules.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
exports.version = '3.0.0';
44

55
var isEqual = require('lodash.isequal');
6-
var filterd = require('lodash.filter');
76
var clonedeep = require('lodash.clonedeep');
87
var matches = require('lodash.matches');
98

@@ -111,7 +110,7 @@
111110
return this.rules;
112111
} else {
113112
var find = matches(filter);
114-
return filterd(this.rules, find);
113+
return this.rules.filter(find);
115114
}
116115
}
117116
RuleEngine.prototype.turn = function(state, filter) {

package-lock.json

Lines changed: 1 addition & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,6 @@
3737
},
3838
"dependencies": {
3939
"lodash.clonedeep": "^4.5.0",
40-
"lodash.filter": "^4.6.0",
4140
"lodash.isequal": "^4.5.0",
4241
"lodash.matches": "^4.6.0"
4342
},

0 commit comments

Comments
 (0)