Skip to content

Glossary: TypeScript Basics

destructuring

Also written: destructure

A JavaScript shorthand that unpacks an object's properties or an array's elements into variables, as in `const [sku, bags] = delivery`. With a tuple, each variable gets its own type.

Where the book teaches it

Related terms

tuple