Book Image

Lo-Dash Essentials

By : Adam Boduch
Book Image

Lo-Dash Essentials

By: Adam Boduch

Overview of this book

Table of Contents (15 chapters)
Lo-Dash Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Summary


In this chapter, we learned some useful approaches to building higher-level application components. Functions are the fundamental unit of Lo-Dash programming, so it's important that we properly utilize all that they have to offer. We addressed some common issues faced when thinking about how to design reusable functions. For example, the specificity of a function and the arguments it accepts can impact where and how the function can be used in your Lo-Dash code.

Generic wrappers and the chained function calls they implement are powerful tools, and there are many implementation options that come with them. We walked through several examples of how different aspects of chains work, and how these wrappers interact with the various functions in our application.

Function composition is an essential part of functional programming and we learned how to exploit the functional tools Lo-Dash provides to compose larger pieces of our application code. These include the generic functions we call...