See also this benchmark, which seems to have very different results from the scottlogic link: <a href="http://jsperf.com/array-push-vs-array-length23333/2" rel="nofollow">http://jsperf.com/array-push-vs-array-length23333/2</a><p>I just re-ran it on FF24 (nightly), and also saw results where .push beats this kludge.<p>So before everyone runs off and takes 'direct array assignment is fast' as a rule of thumb, please consider that it quite probably isn't.