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