Core-js: [question] when should I choose core-js over lodash

Created on 2 Dec 2019  路  1Comment  路  Source: zloirock/core-js

Hi, this is a question.

So what is the difference between CoreJS and Lodash? Why do I need yet another "standard library for JavaScript"? When should I choose core-js over lodash ?

Because stackoverflow doesn't like the question like this so I am asking the question here.

Thanks!

question

Most helpful comment

core-js is a polyfill for ECMAScript features, for example Array.prototype.flat or Map. You can already find these features in most modern browsers, and core-js gives you the possibility to use them in older browsers.

lodash is a set of utility functions. They are based on standard JavaScript features, but have nothing to do with the standard language.

The difference between core-js and lodash is the same as the difference between document.querySelector and jQuery.

>All comments

core-js is a polyfill for ECMAScript features, for example Array.prototype.flat or Map. You can already find these features in most modern browsers, and core-js gives you the possibility to use them in older browsers.

lodash is a set of utility functions. They are based on standard JavaScript features, but have nothing to do with the standard language.

The difference between core-js and lodash is the same as the difference between document.querySelector and jQuery.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

ajbowler picture ajbowler  路  3Comments

vetruvet picture vetruvet  路  5Comments

yusidi picture yusidi  路  3Comments

devongovett picture devongovett  路  4Comments

koenpunt picture koenpunt  路  5Comments