const cond = false; const arr = [ ...(cond ? ['a'] : []), 'b', ]; // ['b']
const cond = false; const arr = [ ...(cond ? ['a'] : []), 'b', ];