1 2 3 4 5 6 7 8 9 10 11
import {InternSet} from "internmap"; export default function difference(values, ...others) { values = new InternSet(values); for (const other of others) { for (const value of other) { values.delete(value); } } return values; }