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,550 points
151 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, 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
294 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, 2019 in Others by Priyaj
• 57,640 points
121 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, 2019 in Others by Nabarupa
2,803 views
0 votes
1 answer

What is the difference between the Internet, Intranet, and Extranet?

The terminologies Internet, Intranet, and Extranet are ...READ MORE

answered Feb 24 in Others by anonymous
• 56,800 points
207 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,850 points
123 views
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
• 69,030 points
218 views
0 votes
1 answer

Error:npm not working after clearing cache

Hello @kartik, Try this: npm cache clean --force OR It ...READ MORE

answered Jul 17 in Node-js by Niroj
• 56,800 points
103 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, 2019 in Others by sunshine
• 1,260 points
256 views
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
189 views