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
I like the a.push.apply(a, b) method described above, and if you want you can always create a library function like this:
a.push.apply(a, b)
Array.prototype.append = function(array) { this.push.apply(this, array) }
and use it like this
a = [1,2] b = [3,4] a.append(b)