for loops
let obj = {name: "Q10",email: "[email protected]"}
const content = []
for(let key in obj){
content.push(obj[key])
}
console.log(content)
// ["Q10", "[email protected]"]
let obj = {name: "Q10",email: "[email protected]"}
const content = []
for(let key in obj){
content.push(obj[key])
}
console.log(content)
// ["Q10", "[email protected]"]