1const person = {
2 name: 'labib',
3 age: 22,
4 job: 'web-developer',
5 frieds: ['ahsik', 'abir', 'alvi', 'hanafi'],
6 childList: {
7 firstChild: 'Salman',
8 secondChild: 'Rafi',
9 thirdChild: 'Anfi'
10 }
11}
12const { frieds: [...a] } = person;
13console.log(...a);
14//Expected output:ahsik abir alvi hanafi