Is there no better way to merge one array into another than iterating over the array you wish to append with each() and push()ing the elements on to the other array?
Here's what I mean: var arr1 = [1, 2, 3, 4, 5]; var arr2 = ['a', 'b', 'c']; $A(arr2).each(function(el) { arr1.push(el) }); Is there no better way to do it than this? Thanks! -Jeremy
pgpDs1oTcUTLC.pgp
Description: PGP signature
_______________________________________________ Rails-spinoffs mailing list Rails-spinoffs@lists.rubyonrails.org http://lists.rubyonrails.org/mailman/listinfo/rails-spinoffs