📅  最后修改于: 2022-03-11 15:01:05.532000             🧑  作者: Mango
const person = {
name: 'labib',
age: 22,
job: 'web-developer',
frieds: ['ahsik', 'abir', 'alvi', 'hanafi'],
childList: {
firstChild: 'Salman',
secondChild: 'Rafi',
thirdChild: 'Anfi'
}
}
const getValues = Object.values(person); //use values method on object
console.log(getValues);
//Expected output:
/*
[
'labib',
22,
'web-developer',
[ 'ahsik', 'abir', 'alvi', 'hanafi' ],
{ firstChild: 'Salman', secondChild: 'Rafi', thirdChild: 'Anfi' }
]
*/