Final thoughts

Let's finish this chapter with two more philosophical considerations regarding currying and partial application, which may cause a bit of a discussion:

  • First, many libraries are just wrong as to the order of their parameters, making them harder to use.
  • Second, I don't usually even use the higher-order functions in this chapter, going for simpler JavaScript code!

That's probably not what you were expecting at this time, so let's go over those two points in more detail, so you'll see it's not a matter of do as I say, not as I do... or as the libraries do!

Get Mastering JavaScript Functional Programming - Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.