ecmascript-undefined-propagation
ecmascript-undefined-propagation copied to clipboard
Destructuring
Would this also work with destructuring?
const { foo } = null
// current: TypeError: Cannot match against 'undefined' or 'null'.
// with this?: `foo === undefined`
Maybe:
const { foo } = null
// TypeError: Cannot match against 'undefined' or 'null'.
const { foo } ?= null
// foo === undefined