What are the downsides to doing:
var myArray = []; myArray[myArray.length] = val1; myArray[myArray.length] = val2;
instead of:
push is way faster, almost 300% faster.
Proof: http://jsperf.com/push-vs-length-test