I have a problem concatenating two associative arrays in JavaScript. Below is the sample code:
var firstArray = new Array();
firstArray.c1 = "sam";
firstArray.c2 = "kam";
var secArray = new Array();
secArray.c3 = "sam";
secArray.c4 = "kam";
var res = firstArray.concat(secArray);
Is this a known limitation?
What's the best way to achieve this?