deconstruction javascript check if exist attrib code example
Example: deconstruction javascript check if exist attrib
const obj = { main: 'Brighton seagull'}const { main } = obj || {}// 'Brighton seagull'
const obj = { main: 'Brighton seagull'}const { main } = obj || {}// 'Brighton seagull'