
Tuple : Design Patterns in TypeScript
Channel:
Subscribers:
24,900
Published on ● Video Link: https://www.youtube.com/watch?v=0TCn0PaOn40
Design Patterns In TypeScript (book)
https://www.amazon.com/dp/B0948BCH24 : ASIN B0948BCH24
https://www.amazon.com/dp/B094716FD6 : ASIN B094716FD6 Documentation :
https://sbcode.net/typescript/common_types/#tuple
The Tuple is similar to an array, but you are explicitly indicating how many items are in the Tuple and of which type they are when you instantiate it. The Tuple type is not directly supported in JavaScript as a Tuple, but as an array instead. The rules of the Tuple are enforced in TypeScript only when it is created. After the Tuple is created, it behaves the same as an array. You can add/remove/edit items.
Other Videos By SBCODE
Tags:
Design Patterns In TypeScript
TypeScript
Design Patterns
tuple