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

Function cachedResult

lib/internal/util.js:347–354  ·  view source on GitHub ↗
(fn)

Source from the content-addressed store, hash-verified

345}
346
347function cachedResult(fn) {
348 let result;
349 return () => {
350 if (result === undefined)
351 result = fn();
352 return ArrayPrototypeSlice(result);
353 };
354}
355
356let signalsToNamesMapping;
357function getSignalsToNamesMapping() {

Callers 1

util.jsFile · 0.85

Calls 1

fnFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…