Is there a more compact way to do this sort of initialization?
for (var i = 0; i < arraySize; i++) array[i] = value;
This is not as compact but is arguably more direct.
array = Array.apply(null, new Array(arraySize)).map(function () {return value;});