You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
186 B
JavaScript

'use strict';
module.exports = function (input, exclude) {
if (!Array.isArray(input)) {
return [];
}
return input.filter(function (x) {
return exclude.indexOf(x) === -1;
});
};