Summary

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

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.