There are certain native angular functions that return a ReadonlyArray, while some native angular callbacks pass ReadonlyArrays as well. Given that my typescript code may be utilized in various scenarios, I prefer not to mandate that all arrays passed to my functions must be ReadonlyArrays.
Therefore, it becomes necessary for me to convert a ReadonlyArray into a regular JavaScript array, [].