>>106545535
>There isn't any memory issue with that, even if a realloc happens, as long at array is boxed.
let el = &vec[0];
vec.push(0);
*el = 5; // potential dangling pointer
>mutation of the elements of the array itself is perfectly fine, in a single thread.
You can have mutable references to multiple different elements of an array.