I found a functional way to build Express middleware
Using functional design is the new cool thing. This is especially true when talking about JavaScript. Functional programming can make complex code much simpler and much shorter. I am going to highlight some code that I wrote for my Packt Publishing video course, The Complete Guide to Node.js.
I want to note first that this is not a perfect apples to apples comparison. It is also not a judgment on the code written for Express.