Replace _.map with array.map
Replace Lodash _.map
with array.map
.

Why is this refactoring helpful?
You can express many _.map
calls with standard JavaScript. This refactoring reduces the dependency on Lodash.
What do I need to consider?
Setting _.iteratee
affects how _.map
behaves. This can lead to differences between _.map
and the JavaScript Array.map
.
Related Code Actions
- Replace _.filter with array.filter
- Replace _.each and _.forEach with array.forEach
- Replace _.every with array.every
- Replace _.some with array.some