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

Function compose

test/fixtures/snapshot/typescript.js:1948–1971  ·  view source on GitHub ↗
(a, b, c, d, e)

Source from the content-addressed store, hash-verified

1946 }
1947 ts.memoizeOne = memoizeOne;
1948 function compose(a, b, c, d, e) {
1949 if (!!e) {
1950 var args_2 = [];
1951 for (var i = 0; i < arguments.length; i++) {
1952 args_2[i] = arguments[i];
1953 }
1954 return function (t) { return reduceLeft(args_2, function (u, f) { return f(u); }, t); };
1955 }
1956 else if (d) {
1957 return function (t) { return d(c(b(a(t)))); };
1958 }
1959 else if (c) {
1960 return function (t) { return c(b(a(t))); };
1961 }
1962 else if (b) {
1963 return function (t) { return b(a(t)); };
1964 }
1965 else if (a) {
1966 return function (t) { return a(t); };
1967 }
1968 else {
1969 return function (t) { return t; };
1970 }
1971 }
1972 ts.compose = compose;
1973 var AssertionLevel;
1974 (function (AssertionLevel) {

Callers 6

parseCommandLineFunction · 0.85
setupFailureStateFileFunction · 0.85
benchCreationFunction · 0.85
runFunction · 0.85

Calls 6

reduceLeftFunction · 0.85
fFunction · 0.50
dFunction · 0.50
cFunction · 0.50
bFunction · 0.50
aFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…