Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Destructuring #3

Open
passcod opened this issue Jul 3, 2016 · 1 comment
Open

Destructuring #3

passcod opened this issue Jul 3, 2016 · 1 comment

Comments

@passcod
Copy link

passcod commented Jul 3, 2016

Would this also work with destructuring?

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

fregante commented Oct 9, 2016

Maybe:

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants