Differences between Object.assign() and Spread(...) | CodeBites - JavaScript | Shrihan Kumar Padhy
Welcome back to another #CodeBites video. This video is a sequel to the previous CodeBites video about merging objects quickly. I hope you'll enjoy this :)
A small correction: There's a place where I show a code example of the instantiation of ES6 setters when using Object.assign(). There, I accidentally named the setter `someRandomValue` instead of `val`, as used in the Object.assign() method afterwards. If you're wondering of the output after this, it actually was of the code with the correction. Sorry :|
References:
caniuse.com report for Object.assign(): https://is.gd/0VFf76
caniuse.com report for Spread Operator: https://is.gd/p4YxCa
Thank you!
Shrihan Kumar Padhy.
#CodeBites #JavaScript #webdev #ObjectsInJavaScript #SpreadOperator
Видео Differences between Object.assign() and Spread(...) | CodeBites - JavaScript | Shrihan Kumar Padhy автора JavaScript и Canvas
Видео Differences between Object.assign() and Spread(...) | CodeBites - JavaScript | Shrihan Kumar Padhy автора JavaScript и Canvas
Информация
29 ноября 2023 г. 11:40:55
00:05:53
Похожие видео