I have an arr like this
[{
"ID": "this THE ID",
"NAME": "this THE NAME",
"AGE": "thiS THE AGE"
}, {
"ID": "that ID",
"NAME": "that THE NAME",
"AGE": "that THE AGE"
}]
I'm looking to achieve this result:
[["this THE ID","this THE NAME","thiS THE AGE"], ["that ID","that THE NAME","that THE AGE"]]
What i tried
var result = []
data.forEach(function(ID,NAME,AGE) {
result.push(ID)
result.push(NAME)
result.psuh(AGE)
});
But i am not getting the correct result that i wanted