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, 2019 in Others by Damon Salvatore
• 5,520 points

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, 2019 by sunshine
• 1,260 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
+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, 2019 in Others by Priyaj
• 57,510 points
0 votes
1 answer

What is the difference between BASH and DOS?

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

answered Mar 8, 2019 in Others by Nabarupa
+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, 2019 in Others by Junaid
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,850 points
0 votes
1 answer

Error installing npm

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

answered Feb 8, 2019 in Linux Administration by Omkar
• 68,880 points
+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, 2019 in Others by sunshine
• 1,260 points
0 votes
1 answer

What is a callback function?

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

answered Jun 12, 2019 in Others by sunshine
• 1,260 points