Is there a way to implement custom behaviour for Object.assign - in particular I want array type property values to be merged rather that overwritten - what is the easiest way to achieve it?
Example:
Default behavior:
Object.assign({a:[1]}, {a:[2]}).a // [2]
while the desired result for me is [1,2].