Transforming collections
Lo-Dash has a number of tools for transforming collections into new data structures. Additionally, there are tools that can take two or more collections and combine them into a single collection. These functions focus on the most common, yet most burdensome programming tasks faced by frontend developers. Instead of focusing on boilerplate collection transformations, you can get back to making a great application—users don't care about awesome compact code as much as you do.
Grouping collection items
Items in collections are sometimes grouped implicitly. For example, let's say there's a size
property for a given class of objects whose allowable values are 'S'
, 'M'
, or 'L'
. The code in your frontend application might need ...
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.