MCPcopy Index your code
hub / github.com/microsoft/SandDance / constructor

Method constructor

docs/app/js/sanddance-app.js:110700–110711  ·  view source on GitHub ↗
(values, key = keyof)

Source from the content-addressed store, hash-verified

110698}
110699class InternSet extends Set {
110700 constructor(values, key = keyof){
110701 super();
110702 Object.defineProperties(this, {
110703 _intern: {
110704 value: new Map()
110705 },
110706 _key: {
110707 value: key
110708 }
110709 });
110710 if (values != null) for (const value of values)this.add(value);
110711 }
110712 has(value) {
110713 return super.has(intern_get(this, value));
110714 }

Callers

nothing calls this directly

Calls 1

addMethod · 0.95

Tested by

no test coverage detected