ecmascript-undefined-propagation icon indicating copy to clipboard operation
ecmascript-undefined-propagation copied to clipboard

Destructuring

Open passcod opened this issue 8 years ago • 1 comments

Would this also work with destructuring?

const { foo } = null
// current: TypeError: Cannot match against 'undefined' or 'null'.
// with this?: `foo === undefined`

passcod avatar Jul 03 '16 00:07 passcod

Maybe:

const { foo } = null
// TypeError: Cannot match against 'undefined' or 'null'.
const { foo } ?= null
// foo === undefined

fregante avatar Oct 09 '16 14:10 fregante