Chapter 6. Application Building Blocks
The previous chapter addressed a key capability of Lo-Dash—wrapping values and executing chained function calls. One benefit of this style of coding is the ability to construct larger units of functionality that are generic and portable. We saw glimpses of both generality and portability when working with wrapper instances in the last chapter. The goal of this chapter is to implement these ideas. Writing an application is more than throwing together filters and maps that give you the data you need. Your code would grow messy in no time if you kept writing the same thing over and over again.
In this chapter, we'll learn how to write generic functions that internally utilize the Lo-Dash API. We'll also take ...
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.