Summary
In this chapter, we have made a bridge from the OO way of thinking and the usual patterns we use when coding that way to the FP style, by showing how we can solve the same basic problems but relatively more easily than with classes and objects. We have seen several common design patterns, and we’ve seen that the same concepts apply in FP, even if implementations may vary, so now you have a way to apply those well-known solution structures to your JavaScript coding.
In Chapter 12, Building Better Containers, we will be working with a potpourri of FP concepts, giving you even more ideas about tools you can use. I promised that this book wouldn’t be deeply theoretical but, rather, more practical, and we’ll try to keep it this way, even if some of the presented concepts may seem abstruse or remote.