danielrvt
danielrvt

Reputation: 10926

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.

Upvotes: 6

Views: 6494

Answers (1)

stalin
stalin

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

Related Questions