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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.