UNPKG

157 BJavaScriptView Raw
1export function without (others) {
2 const difference = new Set(this)
3 for (const other of others) {
4 difference.delete(other)
5 }
6 return difference
7}