Forum Discussion

tbom's avatar
tbom
Contributor
13 years ago

merge 2 arrays into 1

is it possible to easily merge 2 arrays into one? consider the following (jscript) var x = {}; x[1] = "One"; x[2] = "Two"; var y = {}; y[3] = "Three"; y[4] = "Four"; ...
  • nicktulett's avatar
    13 years ago
    but you are defining literal objects, not arrays.



    x and y should both be [] not {}