What is the difference between loadash and underscore

0 votes
I think that loadash can be used instead of underscore. Is it true? I would like to know more about the differences
Jun 21 in Others by Damon Salvatore
• 5,490 points
40 views

1 answer to this question.

0 votes

Loadash makes iterating arrays, strings, and objects easy in JavaScript. It is basically the superset of the Underscore. As it has more features than that like AMD support, deep merge and where is has consistent API support than that.

And Loadash is preferred by most of them as it ensures compatibility with the latest version of the underscore

The most useful feature of it is shorthand

var char = [
  { 'name': 'john', 'age': 25, 'blocked': false },
  { 'name': 'sam',   'age': 45, 'blocked': true }
];

// "_.filter" shorthand
_.filter(char, { 'age': 45 });

// underscore
_.filter(char, function(char) { return char.age === 45; } );

answered Jun 21 by sunshine
• 1,200 points

Related Questions In Others

0 votes
1 answer

What is the difference between hadoop and google analytics ?

I will try and answer this as ...READ MORE

answered Aug 21, 2018 in Others by Frankie
• 9,810 points
36 views
+1 vote
1 answer

What is the difference between Dark Web and Deep Web?

The content that which you cannot find ...READ MORE

answered Feb 6 in Others by Priyaj
• 56,160 points
57 views
0 votes
1 answer

What is the difference between BASH and DOS?

The major difference between the BASH and ...READ MORE

answered Mar 8 in Others by Nabarupa
52 views
+1 vote
2 answers

What is the different between xml and json?

These are the differences:   It is JavaScript Object ...READ MORE

answered Feb 7 in Others by Junaid
40 views
0 votes
1 answer

how to safely deploy npm install without it causing inconsistencies?

The recent versions on npm generates a ...READ MORE

answered Apr 11, 2018 in DevOps on Cloud by DareDev
• 6,810 points
57 views
0 votes
1 answer

Error installing npm

Npm depends on NodeJS to run/get installed. ...READ MORE

answered Feb 8 in Linux Administration by Omkar
• 67,120 points
32 views
+1 vote
1 answer

what is the difference between error and stderr in Node.js?

Error is an object created by Node.js to handle ...READ MORE

answered Jul 4 in Others by sunshine
• 1,200 points
32 views
0 votes
1 answer

What is a callback function?

Callback function is a function which is ...READ MORE

answered Jun 12 in Others by sunshine
• 1,200 points
48 views