ES6 Tutorial - #5 Object Props & Destructuring

Pubblicato il: 16 dicembre 2017
sul canale di: 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...


In questa pagina del sito puoi guardare il video online ES6 Tutorial - #5 Object Props & Destructuring della durata di ore minuti seconda in buona qualità , che l'utente ha caricato Code Realm 16 dicembre 2017, condividi il link con amici e conoscenti, su youtube questo video è già stato visto 2,040 volte e gli è piaciuto 49 spettatori. Buona visione!