Search code examples
javascriptecmascript-6lodash

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?


Solution

  • 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.