Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is lodash _.map faster than Node.js map?

I have a project where I'm using _.map everywhere. Now I have the need to improve it's performance and was wondering if is there any time-performance benefit for using _.map instead of [...].map.

like image 560
danielrvt Avatar asked Mar 23 '16 11:03

danielrvt


1 Answers

Here are a comparation of the native map against the lodash map

Aparently lodash is faster

https://jsperf.com/native-map-vs-lodash-map

like image 115
stalin Avatar answered Sep 30 '22 13:09

stalin