epiphany/node_modules/array-differ/index.js
2023-12-09 22:19:03 -08:00

8 lines
191 B
JavaScript

'use strict';
const arrayDiffer = (array, ...values) => {
const rest = new Set([].concat(...values));
return array.filter(element => !rest.has(element));
};
module.exports = arrayDiffer;