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 ...

Get Lo-Dash Essentials 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.