Q65: What are Labeled Tuple Elements and why are they used?

Difficulty:EasyTopic:Tuples

Labeled tuples allow adding documentation labels to tuple indices ([name: string, age: number]) without altering the tuple's structural type checks.

Key Takeaways
  • Improves readability and IDE parameter documentation for tuple types.