Skip to content

Commit 398f510

Browse files
author
Anand Thakker
committed
Use Array.prototype.some()
Closes #152
1 parent 01b34de commit 398f510

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

lib/module_filters.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,9 @@ module.exports = {
5454
var internal = internalModuleRegexp.test(id);
5555
return internal || (externalFilters &&
5656
externalFilters
57-
.map(function (f) {
57+
.some(function (f) {
5858
return f(file, pkg);
59-
})
60-
.reduce(function (a, b) {
61-
return a || b;
62-
}, false));
59+
}));
6360
};
6461
}
6562
};

0 commit comments

Comments
 (0)