Chapter 15 | Destructuring | Typescript | Angular Tutorial

Опубликовано: 14 Февраль 2026
на канале: Rudra Tech 2014
444
7

Code URL - https://stackblitz.com/edit/typescrip...

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.