wallet-core/node_modules/arr-exclude/index.js

11 lines
186 B
JavaScript
Raw Normal View History

2017-05-28 00:38:50 +02:00
'use strict';
module.exports = function (input, exclude) {
if (!Array.isArray(input)) {
return [];
}
return input.filter(function (x) {
return exclude.indexOf(x) === -1;
});
};