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 O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.