Skip to content
This repository has been archived by the owner on Jul 22, 2020. It is now read-only.

Destructing #29

Open
huczk opened this issue May 24, 2020 · 1 comment
Open

Destructing #29

huczk opened this issue May 24, 2020 · 1 comment

Comments

@huczk
Copy link

huczk commented May 24, 2020

Hi, i have a question regarding destructing, will this new assignments work while destructing? this can be very handy for example 😄 :

const { a ??= "value" } = someVariable.

Current default assign while destructing only checks for undefined so nullish check can help a lot

@hax
Copy link
Member

hax commented May 24, 2020

I remember this was discussed before and could be a follow-on proposal.

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

No branches or pull requests

2 participants