12 lines
217 B
JavaScript
12 lines
217 B
JavaScript
import {InternSet} from "internmap";
|
|
|
|
export default function union(...others) {
|
|
const set = new InternSet();
|
|
for (const other of others) {
|
|
for (const o of other) {
|
|
set.add(o);
|
|
}
|
|
}
|
|
return set;
|
|
}
|