smartprocure/futil-js

mergeAllArrays appears to be broken

stellarhoof opened this issue · 1 comments

Test case:

F.mergeAllArrays({a: [1], b: 5}, {a: [2]})

Result:

{a: [2]}

Expected:

{a: [1, 2], b: 5}

It seems it's just a matter of using mergeWith instead of mergeAllWith

mergeOverAll takes an array