tbom
13 years agoContributor
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"; ...
- 13 years agobut you are defining literal objects, not arrays.
x and y should both be [] not {}