How do I convert an array of objects to an array of arrays in javascript? I did this, but it 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 to popular this way?