The Array.map method will create a new array with what is returned by a given method for each element.
So of course the same thing can be done with _.map in lodash.
However _.map in lodash is a collection method, so it can also be used on plain old objects as well, not just Arrays.
For a more advanced example of _.map in action, say I have a complex object that has nested objects inside of it, and I want to toggle a boolean value for each object, and flatten everything out into an array. I can call _.map recursively on objects, and arrays. Other lodash methods like _.isArray, and _.flatten can also be used in the process.