There doesn\'t seem to be a way to extend an existing JavaScript array with another array, i.e. to emulate Python\'s extend method.
extend
I want to achieve th
It is possible to do it using splice():
splice()
b.unshift(b.length) b.unshift(a.length) Array.prototype.splice.apply(a,b) b.shift() // Restore b b.shift() //
But despite being uglier it is not faster than push.apply, at least not in Firefox 3.0.
push.apply