I have an object with the following values:
"Obj": {
"value1": [],
"value2": [
"1",
"2",
"3",
"4"
]
}
If I check my obj I can see that its size is equal to 2. That makes sense, of course, 'cause I have two arrays here. But the thing is, I need it to have one array only. By that I mean: I want to convert those 2 arrays into one array.
Have been trying for a while with a few methods. None of them had the expected behavior.
For example:
var arr = [];
arr = [sRows.value1, sRows.value2]
Or:
$.each(sRows, function(k,v){
result[i] = v;
})
Any ideas?