filmov
tv
Chapter 15 | Destructuring | Typescript | Angular Tutorial

Показать описание
Destructuring syntax is an expression that unpacks values from arrays or properties of objects into distinct variables.
Example:
let arr = [1,2];
let [x, y] = arr;
Values in array are assigned to individual variables x and y.