If found out, that defaults is OVERWRITTEn. So instead of: options = Object.assign(objct1, objct2) console.log(objct1) //you can just write Object.assign(objct1, options) console.log(objct1) Why would you (and everyone else) teach, that Object.assign passes something to options, while it seems, that actually Object.assign just overwrites the first object with the second object. you can not use the first object more then once, since its overwritten with the assign method. nobody mentions this. its just "creating a new object", but ist not realy, righT?! :o
Best Explaination .Keep it up
Great video. Kind of what I am looking for, but not exactly. You did good, and it is useful!
Good explanation with good example...👍😊
oh this video hit gold as i was trying to understand a certain code
Great video, this is exactly what I needed!
No worries mate I'm glad it helped ya
Fantastic explanation, I was lost before.
Thank you for helping us writing nice and clean code ! :)
beautiful explanation, thank you!
This reallyyy helped me to understand this. Thank you a billion!!! :))))
Very useful thank you!
Very nicely explained.
well explained, thank you
what if we have to Map over the properties of finalResult....how would be able to do that
Thank you so much for this, Dom! 👍🏽
You're welcome!!
Great explanation, thanks a lot!
No probs!
This is an amazing video! Thank you!
You're welcome!
excellent tutorial keep it up
it was so helpfull.. thanks
thank you for learning
very helpful!Thank you, sir!
very practical, thanks
Best video on internet
about object.assign() :)
Thanks Dom = Doomer XD
that's amazingggggggggggggggggggggggggggggggggggggggggggggggggggg,thank you brooo
thank you !😍
It should be noted that by the steps shown in the video, the original course object is edited as well to now include a score property.
Yeah... I was googling and youtubing a while, but nobody actually mentions that. While thats actually what the assign method does, right? o0
Beautiful
What's name of the theme?
Mrs Water and Steve Bottle... lol imma guess u were thirsty bro
Thank you~!
Behetreen
If found out, that defaults is OVERWRITTEn.
So instead of:
options = Object.assign(objct1, objct2)
console.log(objct1)
//you can just write
Object.assign(objct1, options)
console.log(objct1)
Why would you (and everyone else) teach, that Object.assign passes something to options, while it seems, that actually Object.assign just overwrites the first object with the second object.
you can not use the first object more then once, since its overwritten with the assign method. nobody mentions this. its just "creating a new object", but ist not realy, righT?! :o