If passed an array arrify returns the same refrence. With the current type declarations this would convert a ReadonlyArray<T> to a mutable Array<T> because it matches the overload with Iterable<T>.
This adds an overload to make sure readonly arrays are not mutated after being passed through arrify.
If passed an array
arrify
returns the same refrence. With the current type declarations this would convert aReadonlyArray<T>
to a mutableArray<T>
because it matches the overload withIterable<T>
. This adds an overload to make sure readonly arrays are not mutated after being passed through arrify.