Course contentsShow
TypeScript
Lesson 120 of 1,7963. Basic TypesPro lesson

Optional Tuple Elements

Mark tuple positions as optional with ? to allow shorter tuples: [string, number?] accepts one or two elements.

This lesson is for subscribers

You've completed the free preview. Subscribe to unlock every lesson in every course.