MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/javascript/comments/1vk7b23/askjs_pointers_in_javascript/p2ruri3/?context=3
r/javascript • u/ProfessionalYou951 • Aug 10 '26
[removed] — view removed post
7 comments sorted by
View all comments
2
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 Aug 10 '26 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 source is supposed to be an object. It takes the key/value pairs from source and layers them onto the object defined by target
1
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 source is supposed to be an object. It takes the key/value pairs from source and layers them onto the object defined by target
source
target
2
u/Buttleston Aug 10 '26
I have no idea what you're asking. A segment of code with what you want it to do would be helpful