interface Config { readonly options: ReadonlyArray<string> }
const c: Config = { options: ['a', 'b', 'c'] }
// c.options.push('d') β Error: read-only arrayReadonlyArray<T> prevents mutation methods like push and splice on array-type properties.
Challenge: Implement createReadonlyArray<T>(items) returning a frozen copy of the array.
const arr = createReadonlyArray([1, 2, 3])
Object.isFrozen(arr) // β true