For cases when we need to map an array of values - existing afterMap is not called for optimization purposes.
So I've decided to add new map configurations such as beforeMapArray and afterMapArray.
They are intended to work like beforeMap/afterMap configurations, but are executed only in mapArray and mutateArray methods.
These callbacks would receive an array of sources and array of destination objects, respectively.
Description
For cases when we need to map an array of values - existing
afterMap
is not called for optimization purposes.So I've decided to add new map configurations such as
beforeMapArray
andafterMapArray
.They are intended to work like
beforeMap/afterMap
configurations, but are executed only inmapArray
andmutateArray
methods. These callbacks would receive an array of sources and array of destination objects, respectively.Types
Checklist