Last updated on
In the tutorial you’ll first lean about how to destructure an array into it’s individual values and store these in variables. Also, you’ll learn some of the tips and tricks to skip over values or extract just one particular value from an array.
You’ll then learn about destructuring objects which is a little different to arrays but equally as useful. You can extract properties from an object by specifying the name of the property you need from the object and storing this value in a variable name. There also some tricks that can be done with objects to only extract certain values and ‘throw away’ the rest of the object.