In Javascript, I have an array of objects like so:
var array = [{ foo: 'bar' }, { foo: 'baz' }, { foo: 'qux' }]; which looks like this, really...
[0: {...}, 1: {...}, 2: {...}] and I delete the second one:
delete array[1]; then I have this:
[0: {...}, 2: {...}] How can I adjust this array so the keys are back in numerical order?
delete, you don't have to worry about it.