I am looking for a JavaScript library that manipulates arrays of objects, mainly for filtering, sorting and grouping/counts.
It seems that underscore.js fits the bill, but I’d be interested to explore other options. Underscore has 60+ functions while I just need a handful.
For example, I would expect some datatable libraries to include such features, but I don’t know where to look.
It’s called JavaScript
arr.filter,arr.sort,arr.length.You can apply any array method on an array, popular ones are
filter,mapandreduce, You can build more complex operations by combining those.If you want to iterate over objects use
underscore is useful if you live in an ES3 world, but ES5 has everything you need, all underscore does is add bloat on top of it.