new javascript viewer

This commit is contained in:
Andrea Pozzetti
2026-02-12 21:27:40 +01:00
parent 0ab385b19c
commit 4f77029caa
5318 changed files with 794 additions and 600633 deletions
-19
View File
@@ -1,19 +0,0 @@
import {InternSet} from "internmap";
export default function intersection(values, ...others) {
values = new InternSet(values);
others = others.map(set);
out: for (const value of values) {
for (const other of others) {
if (!other.has(value)) {
values.delete(value);
continue out;
}
}
}
return values;
}
function set(values) {
return values instanceof InternSet ? values : new InternSet(values);
}