MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / composeFunctions

Function composeFunctions

packages/challenge-builder/src/build.ts:54–55  ·  view source on GitHub ↗
(...fns: ApplyFunctionProps[])

Source from the content-addressed store, hash-verified

52 };
53
54const composeFunctions = (...fns: ApplyFunctionProps[]) =>
55 fns.map(applyFunction).reduce((f, g) => x => f(x).then(g));
56
57// Test helpers parse sources.contents across all files. Without this boundary,
58// an index.ts first-line declaration can be concatenated onto empty/no-newline

Callers 3

buildDOMChallengeFunction · 0.85
buildJSChallengeFunction · 0.85
buildPythonChallengeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected