MCPcopy Index your code
hub / github.com/nodejs/node / Set

Function Set

test/fixtures/snapshot/typescript.js:265–269  ·  view source on GitHub ↗
(iterable)

Source from the content-addressed store, hash-verified

263 }());
264 return /** @class */ (function () {
265 function Set(iterable) {
266 var _this = this;
267 this._mapData = createMapData();
268 forEachIteration(getIterator(iterable), function (value) { return _this.add(value); });
269 }
270 Object.defineProperty(Set.prototype, "size", {
271 get: function () { return this._mapData.size; },
272 enumerable: false,

Callers

nothing calls this directly

Calls 4

createMapDataFunction · 0.85
forEachIterationFunction · 0.85
getIteratorFunction · 0.85
addMethod · 0.65

Tested by

no test coverage detected