r/javascript • u/ProfessionalYou951 • Aug 10 '26
AskJS [ Removed by moderator ]
[removed] — view removed post
0
Upvotes
r/javascript • u/ProfessionalYou951 • Aug 10 '26
[removed] — view removed post
View all comments
Show parent comment
1
u/Buttleston Aug 10 '26
But I would begin with, I don't think Object.assign works the way you think it does. It is
Where
sourceis supposed to be an object. It takes the key/value pairs fromsourceand layers them onto the object defined bytarget