in reply to Efficient array element deletion

If your array can't contain undefined values to begin with, the simplest approach would be to undefine the values rather than deleting them. Then, just ignore the undefined values later on.