wallet-core/node_modules/arr-exclude/index.js
2017-05-28 00:40:43 +02:00

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;
});
};