Q62: What is the difference between `Array<T>` and `ReadonlyArray<T>`?
ReadonlyArray<T> removes mutating array instance methods (push, pop, splice, sort) and blocks index element assignments.
Key Takeaways
- Use
ReadonlyArray<T>to block unexpected side-effect mutations on array data.