let arr = [] let obj = { name: 'jack', age: 12 } for (key in obj) { arr.push(obj[key]) } console.log(arr);