Dekonstruksi JavaScript Periksa apakah ada atrib

const obj = {  main: 'Brighton seagull'}const { main } = obj || {}// 'Brighton seagull'
Smoggy Swiftlet