I'm trying to use push method to add this object arrayObject to newArrayCheck but the values property comes out as [[array] [array]] in instead of [[1,2],[5,6]]. How can I use push method to add the correct value for the value property which is [[1,2],[5,6]].
arrayObject =[ {
obj : "King",
values : [[1,2],[5,6]]
}];
newArrayCheck = []
for (let i of arrayObject){
newArrayCheck.push(i);
};
console.log(newArrayCheck);

node.jsis hiding some things so that you can see the overall picture. If you want details, inspectnewArrayCheck[0]instead, so node won't feel the need to simplify the display.console.log( JSON.stringify( newArrayCheck) );