7
How do I convert an array of objects to an array of arrays in javascript? I did so, but returns an array of objects
var items1 = new Array();
$.map(objResposta, function(value,index) {
teste = new Array();
items1.push(value);
teste.push(items1);
});
I need the values that are in red to stay in the array this way:
Array [ ['resposta atualizada', 5], ['esse foi', 4] ]
Is there any way popular like this?
You want for a generic case or just for that specific array?
– Jean Coppieters