I am trying to merge two array inside an object but would like to set it to fallback to source in case the target is undefined. Currently this is not doable because the target value in that case always defaults to an empty array.
This change would probably be breaking so it would be good to at least know the original value as the last additional parameter of the arrayMerge fn.
I am trying to merge two array inside an object but would like to set it to fallback to source in case the target is undefined. Currently this is not doable because the target value in that case always defaults to an empty array.
This change would probably be breaking so it would be good to at least know the original value as the last additional parameter of the arrayMerge fn.