mirror of
https://github.com/fooflington/selfdefined.git
synced 2025-01-23 01:40:10 +00:00
9 lines
191 B
JavaScript
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;
|