tatianamac 6d5445ecc5 update
2019-11-26 14:50:43 -08:00

9 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;