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

Function zipToMap

test/fixtures/snapshot/typescript.js:461–468  ·  view source on GitHub ↗
(keys, values)

Source from the content-addressed store, hash-verified

459 }
460 ts.zipToIterator = zipToIterator;
461 function zipToMap(keys, values) {
462 ts.Debug.assert(keys.length === values.length);
463 var map = new ts.Map();
464 for (var i = 0; i < keys.length; ++i) {
465 map.set(keys[i], values[i]);
466 }
467 return map;
468 }
469 ts.zipToMap = zipToMap;
470 /**
471 * Creates a new array with `element` interspersed in between each element of `input`

Callers

nothing calls this directly

Calls 2

assertMethod · 0.80
setMethod · 0.45

Tested by

no test coverage detected