I have the following object
\"data\":{ \"name 1\":\"a\", \"name 2\":\"b\", \"name 3\":\"b\", },
How can
js native method u can use;
var data = { "name 1":"a", "name 2":"b", "name 3":"b", }; var newObj = [...Object.values(data), ...Object.keys(data)] console.log(newObj)