Загрузка...

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
Страницу в закладки Мои закладки
Все заметки Новая заметка Страницу в заметки