Is there a more compact way to do this sort of initialization?
for (var i = 0; i < arraySize; i++) array[i] = value;
For efficiency, I would avoid push. So simply
push
For IE10:
array = new Array(arraySize); for (var i = 0; i < arraySize; i++) array[i] = value;
Edit: modified as discussed in the comments.