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

Readonly Tuples

Use readonly modifier to prevent modification: readonly [string, number] disallows push, pop, and index assignment.

This lesson is for subscribers

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