ES6 Tutorial - #5 Object Props & Destructuring

Опубликовано: 16 Декабрь 2017
на канале: Code Realm
2,040
49

00:18 POJO (Plain Old JavaScript Objects)
01:37 Property Shorthand
03:15 Method Properties
05:28 Property Naming Rules
06:06 Computed Property Names
08:52 Object Destructuring
11:12 Deep Object Destructuring
13:06 Object Parameter Destructuring in Functions
15:25 Array Destructuring
18:12 Array Parameter Destructuring
19:40 Deep Array Parameter Destructuring

Why don't we move on to object enhancements in ES6? There's quite a few. First, you can now use a shorthand for defining object properties and methods. Plus, you can also assign dynamic computed properties directly on your objects (You'll love it!). And last but not least, extracting object props and array elements is now a breeze with a new destructuring (aka matching) syntax. To the editor!

Still haven't grasped destructuing? Axel Rauschmayer wrote a whole chapter that might help you sink this in http://exploringjs.com/es6/ch_destruc...


На этой странице сайта вы можете посмотреть видео онлайн ES6 Tutorial - #5 Object Props & Destructuring длительностью часов минут секунд в хорошем качестве, которое загрузил пользователь Code Realm 16 Декабрь 2017, поделитесь ссылкой с друзьями и знакомыми, на youtube это видео уже посмотрели 2,040 раз и оно понравилось 49 зрителям. Приятного просмотра!