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

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 chained function calls a step further by exploring the various ways they fit together, like puzzle pieces, and ultimately result in a robust foundation for your application. There comes a point when the functions you write for your application belong...