beginner35 minby DevFox

Destructuring and spread (and why spread is shallow)

Take properties out of an object by name and items out of a tuple by place, copy an object or a list with three dots, and change what differs in the same braces. See why a spread copy still shares every list inside it, and copy that list too.

  • TypeScript
  • Fundamentals
Destructuring and spread (and why spread is shallow). Read this lesson at .