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

Function optionMapToObject

test/fixtures/snapshot/typescript.js:41168–41173  ·  view source on GitHub ↗
(optionMap)

Source from the content-addressed store, hash-verified

41166 }
41167 ts.convertToTSConfig = convertToTSConfig;
41168 function optionMapToObject(optionMap) {
41169 return __assign({}, ts.arrayFrom(optionMap.entries()).reduce(function (prev, cur) {
41170 var _a;
41171 return (__assign(__assign({}, prev), (_a = {}, _a[cur[0]] = cur[1], _a)));
41172 }, {}));
41173 }
41174 function filterSameAsDefaultInclude(specs) {
41175 if (!ts.length(specs))
41176 return undefined;

Callers 1

convertToTSConfigFunction · 0.85

Calls 2

reduceMethod · 0.80
entriesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…