index.js 191 B

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