How can I Convert a ReadonlyArray<any> to any[]?

Some native angular functions return a ReadonlyArray. Some native angular callbacks pass ReadonlyArrays. Since my typescript code may be called in many ways, I don’t want to require all arrays passed to my functions be ReadonlyArrays.

Hence I need to convert a ReadonlyArray to a javascript native array, [].

54 thoughts on “How can I Convert a ReadonlyArray<any> to any[]?”

  1. 847664 952885This web page may possibly be a walk-through like the data you wanted concerning this and didnt know who need to have to. Glimpse here, and youll undoubtedly discover it. 830173


Leave a Comment