Apr 17, 2023
If you destructure a property that’s not defined, either because it has the value of undefined or isn’t a property on the object, then you assign new variables with the value of undefined.
const {a,b} = {a:undefined};console.log(a,b)
// undefined undefined