I'm getting the Expression expected
error when I try this:
const func = () => [0, 1]
const possibly_undefined_var = { var: 3 }
const var = [possibly_undefined_var?.var ?? ...func()]
Expected result: [3] or [0, 1]
I was wondering if there is any way to use the array spread operator along with nullish coalescing in this example.