MCPcopy Create free account
hub / github.com/breck7/scroll / constructor

Method constructor

external/.d3.js:431–435  ·  view source on GitHub ↗
(values, key = keyof)

Source from the content-addressed store, hash-verified

429
430class InternSet extends Set {
431 constructor(values, key = keyof) {
432 super();
433 Object.defineProperties(this, {_intern: {value: new Map()}, _key: {value: key}});
434 if (values != null) for (const value of values) this.add(value);
435 }
436 has(value) {
437 return super.has(intern_get(this, value));
438 }

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected