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,980 points
730 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,300 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 22, 2018 in Others by Frankie
• 9,830 points
1,301 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
• 58,090 points
889 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
15,878 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, 2020 in Others by anonymous
• 82,880 points
2,338 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,890 points
701 views
0 votes
1 answer

Error installing npm

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

answered Feb 9, 2019 in Linux Administration by Omkar
• 69,210 points
764 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, 2020 in Node-js by Niroj
• 82,880 points
6,080 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,300 points
1,985 views
0 votes
1 answer

What is a callback function?

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

answered Jun 13, 2019 in Others by sunshine
• 1,300 points
909 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP