I am going through an object and separating out the array in customer and customerportals but my code is not working
var j=0;
var k = 0;
var myVar[j][k] = Array();
$.each(Object.customer, function(index, value) {
$.each(value.portal.customerPortal, function(innerIndex, innerValue) {
myVar[j][k] = innerValue.name;
k++;
});
j++;
});
alert(myVar[0][0]);
any help would be great
customerproperty toObject? Also don't useArray(), use[].