Funk Soul Ninja Funk Soul Ninja - 1 year ago 75
Javascript Question

What are the differences between the map methods in ES6 and lodash?

Can one do more than the other? Should I stick with lodash or just use ES6's map method?

Answer Source

They're both compliant with the ECMA-262 spec, so they're identical. However, for portability (and perhaps performance/readability), I personally prefer the built-in ES6 map method.

Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download