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

Rest Elements in Tuples

Use rest syntax for variable-length tails: [string, ...number[]] accepts one string followed by any number of numbers.

This lesson is for subscribers

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