This chapter introduced us to how we can use Lo-Dash functions to perform sophisticated object interactions. We started with the utilities that made reasoning about the JavaScript type system a little less painful. Next, we saw how object properties can be accessed and assigned in various contexts. Iterating through object properties was the next topic, and there's an abundance of tools at your disposal in Lo-Dash here. In particular, iterating over only an object's keys or values would require a lot of boilerplate code, were it not for the Lo-Dash functions that take care of this for us. Transformations take place when we pass an object to a Lo-Dash function and it yields a new structure. Like when we're looking for a collection of key-value pairs. Picking or omitting properties is a really straightforward activity too. We wrapped up the chapter by taking a look at object creation and cloning facilities. These help us when we need to bend the rules a little to meet the needs of...
Lo-Dash Essentials
By :
Lo-Dash Essentials
By:
Overview of this book
Table of Contents (15 chapters)
Lo-Dash Essentials
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Free Chapter
Working with Arrays and Collections
Working with Objects
Working with Functions
Transformations Using Map/Reduce
Assembling Chains
Application Building Blocks
Using Lo-Dash with Other Libraries
Internal Design and Performance
Index
Customer Reviews