— Nice, data logistics company is sending me some JS test cases as a test tomorrow
— I guess my goal is to make the test cases pass by debugging the code
— My docs are especially big for what it is, too
—
const compose = (...funcs) => x =>
funcs.reduce((x, f) => f(x), x);
— What do you think of this snippet?
— It's a... function in a function in a function
—
const upperCaseName = compose(
getName,
x => x.toUpperCase()
);
upperCaseName(person);
— I don't understand how the second arrow function gets invoked