Does Removing Index 0 of an Array Automatically Resize it?

For instance if i have an array with 10 items, and i remove index 0, does index 1 become the new index 0, index 2 become index 1, and so on, etc, and the new length of the array becomes 9 instead of 10?

Or is the value of index 0 just reassigned to null?

If it doesn’t work this way, is there any function i can call that will remove an item and then automatically resize the array to compensate?

removing index 0 pushes all the other elements 1 position (1 becomes 0, 2 becomes 1) and the length of the array is one element smaller. So yes…removing really removes.