Why do the Array functions erase the readonly modifier?

It seems like the functions in Array (eg map, filter, flatten, etc) accept readonly arrays but return mutable arrays. Is this intentional? It seems like a large regression in terms of safety compared to the RA functions from fp-ts.
Was this page helpful?