Funk Soul Ninja Funk Soul Ninja - 26 days ago 7
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

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.

Comments