Message from JavaScript discussions

July 2017

— Because people who are developing apps will be surprised if some random piece clutters their localStorage

Message permanent page


People don't read docs of every piece of code they include, so the code they include shouldn't get in their way

— 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

— Thanks

— 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

— How does that work?


const upperCaseName = compose(
x => x.toUpperCase()


— I don't understand how the second arrow function gets invoked