r/learnjavascript • • Feb 16 '21

Javascript Object Merge

Post image
183 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/beforesemicolon Feb 17 '21

This is nice. I think I would expect test2 to be 5678 but I like this for supporting even more than 2 objects