Lodash vs JavaScript Built In for map, reduction, filtering

I was wondering whether to include Lodash need for these 3 functions [ map(), reduce(), filter()] or simply use their version ES6.

I prefer to use the Lodash features, it's a little easier for my use However, I know that there is probably a performance advantage for using ES6 features.

It was also interesting if Lodash supports more backward compatibility with ES6?

Suggestions for testing the performance of my implementations?

Suggestions on whether to continue to use Lodash or use ES6?

+4
source share
2 answers

Lodash - , , .. , ES6, . , , ES6. @Mayday , .

Lodash , , , , ( lodash, , , ). , , , , es5 , dev-, , , .

. : JavaScript-?

Google Chrome Firefox : https://developers.google.com/web/tools/chrome-devtools/evaluate-performance/reference#record

native lodash, , , (console.time https://developer.mozilla.org/en-US/docs/Web/API/Console/time), , , . , , .

@TamasHegedus , ES5, , , .

+8

Js perf - 2015 , , lodash Map , , , .

- - , , JavaScipt . , Lodash, Native es6.

+1

Source: https://habr.com/ru/post/1678494/


All Articles