var obj = { a: 'xx', b: 'yy', c: 'zz' } var arr = [] for (let i in obj) { let o = {}; o[i] = obj[i]; arr.push(o) } console.log(arr);
var obj = { a: 'xx', b: 'yy', c: 'zz' } var arr = [] for (let i in obj) { let o = {}; o[i] = obj[i]; arr.push(o) } console.log(arr);