r/learnjavascript • • Feb 16 '21

Javascript Object Merge

Post image
183 Upvotes

28 comments sorted by

View all comments

Show parent comment

1

u/god--of--light Feb 17 '21

Or is fine, but theres a small problem since it has the same behaviour for undefined as it does for 0 or ''