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

Issue with "Optional chaining (?.)": … #1359

Closed
davidecarpini opened this issue Jan 15, 2021 · 1 comment · Fixed by #1413
Closed

Issue with "Optional chaining (?.)": … #1359

davidecarpini opened this issue Jan 15, 2021 · 1 comment · Fixed by #1413
Assignees
Labels
Content:JS JavaScript docs effort: small This task is a small effort.

Comments

@davidecarpini
Copy link

MDN URL: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining

What information was incorrect, unhelpful, or incomplete?

this information is not totally true, or mind-tricky:
Optional chaining cannot be used on a non-existent root object. It does not replace checks like if (typeof a == "undefined").

expected:

Optional chaining cannot be used on a non-declared root object, but can be used with undefined root object

after tested:

Schermata 2021-01-15 alle 16 26 58
Schermata 2021-01-15 alle 16 26 33

@chrisdavidmills chrisdavidmills added effort: small This task is a small effort. Content:JS JavaScript docs labels Jan 15, 2021
sideshowbarker added a commit that referenced this issue Jan 18, 2021
Fixes #1359

This changes also includes unrelated fixes for assorted flaws.
sideshowbarker added a commit that referenced this issue Jan 18, 2021
Fixes #1359

Also includes unrelated fixes for assorted flaws.
@sideshowbarker
Copy link
Collaborator

Thanks much — I’ve opened #1413 with a patch that updates that article.

Rumyra pushed a commit that referenced this issue Jan 18, 2021
Fixes #1359

Also includes unrelated fixes for assorted flaws.
@sideshowbarker sideshowbarker self-assigned this Jul 31, 2022
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Aug 1, 2023
barhenthv added a commit to barhenthv/content that referenced this issue Aug 2, 2024
Fixes mdn/content#1359

Also includes unrelated fixes for assorted flaws.
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Content:JS JavaScript docs effort: small This task is a small effort.
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants