Reputation: 10926
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
.
Upvotes: 6
Views: 6494
Reputation: 3464
Here are a comparation of the native map against the lodash map
Aparently lodash is faster
https://jsperf.com/native-map-vs-lodash-map
Upvotes: 5