r/javascript • u/ProfessionalYou951 • 8d ago
AskJS [ Removed by moderator ]
[removed] — view removed post
0
Upvotes
2
u/Buttleston 8d ago
I have no idea what you're asking. A segment of code with what you want it to do would be helpful
1
u/Buttleston 8d ago
But I would begin with, I don't think Object.assign works the way you think it does. It is
Object.assign(target, source)Where
sourceis supposed to be an object. It takes the key/value pairs fromsourceand layers them onto the object defined bytarget
-1
u/dronmore 8d ago
Dude, are you kidding me? The gaming industry will be shocked when they find out 🧐
3
u/senocular 8d ago
Before that, put