Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Alternatives to underscore.js

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.

like image 407
Christophe Avatar asked Jan 16 '12 18:01

Christophe


People also ask

What can I use instead of a underscore?

Google recommends using hyphens instead of underscores in your URLs. This is because using hyphens instead of underscores makes it easier for Google's web crawler to compute the information that your website has and create consistent results.

Is underscore JS still used?

Lodash and Underscore are great modern JavaScript utility libraries, and they are widely used by Front-end developers.

Why is JavaScript underscore better?

Underscore provides over 100 functions that support both your favorite workaday functional helpers: map, filter, invoke — as well as more specialized goodies: function binding, javascript templating, creating quick indexes, deep equality testing, and so on.


1 Answers

I know this is old but did you look at lodash? From the site:

A drop-in replacement* for Underscore.js. [...]

Custom builds make it easy to create lightweight versions of Lo-Dash containing only the methods you need. To top it off, we handle all method dependency and alias mapping for you.

like image 56
Nick Cox Avatar answered Sep 27 '22 20:09

Nick Cox