var teamMembers = [
['John D. Adams', '1959-1967', 'Ohio'],
['Dawson Mathis', '1971-1981', 'Georgia'],
];
To generate this dynamically, I am implementing the code below:
var data = new Array();
var members = [];
$.each(data, function (i, elem) {
data.push(elem["person_age"], elem["person_name"], elem["person_date"]);
members.push(data);
});
console.log(members);
}
I want to display these values as follows.
for(var x = 0; x < members.length; x++) {
console.log(members[i][0]);
console.log(members[i][1]);
console.log(members[i][2]);
}
However, when I attempt this, I receive the following output.
[object][object][object][object][object][object]