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

Function Map

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

Source from the content-addressed store, hash-verified

228 }());
229 return /** @class */ (function () {
230 function Map(iterable) {
231 var _this = this;
232 this._mapData = createMapData();
233 forEachIteration(getIterator(iterable), function (_a) {
234 var key = _a[0], value = _a[1];
235 return _this.set(key, value);
236 });
237 }
238 Object.defineProperty(Map.prototype, "size", {
239 get: function () { return this._mapData.size; },
240 enumerable: false,

Callers

nothing calls this directly

Calls 4

createMapDataFunction · 0.85
forEachIterationFunction · 0.85
getIteratorFunction · 0.85
setMethod · 0.45

Tested by

no test coverage detected