Skip to content

Commit

Permalink
fix(core): run beforeMap in mapArray with an empty array instead
Browse files Browse the repository at this point in the history
  • Loading branch information
nartc committed Feb 24, 2021
1 parent 5a91c31 commit 2975071
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/core/src/lib/map/map.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export function mapArray<

// run beforeMap for the whole map operation
if (beforeMap) {
beforeMap(sourceArray, destinationArray);
beforeMap(sourceArray, []);
}

// loop through each item and run map() for each
Expand Down

0 comments on commit 2975071

Please sign in to comment.