I tried to delete an array part.
Did not work
delete my_array[index];
Did work
my_array.splice(index, 1);
When looking at the array it looks fine in both cases in the console.log but the first one crashed my app.
I'm not sure if Vue that I'm using are treating these differently
Why does the last one work, but not the first?
splice- which comes from the fact thatdeleteis really defined in general for objects and has no special behavior for arraysdeletedoesn't reindex the array it was used on, it leaves you with a sparse array, where assplicereindexes the array if needed.