Support optional chaining and nullish coalescing syntax
See original GitHub issueIs your feature request related to a problem? Please describe. Support optional chaining syntax: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Optional_chaining
For example a?.b
Describe the solution you’d like
Obfuscate code making use of optional chaining.
Describe alternatives you’ve considered
Disable obfuscation for files containing this syntax
Additional context Add any other context or screenshots about the feature request here.
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:13 (12 by maintainers)
Top Results From Across the Web
Optional chaining (?.) - JavaScript - MDN Web Docs - Mozilla
The optional chaining ( ?. ) operator accesses an object's property or calls a function. If the object accessed or function called is ......
Read more >How to Use Optional Chaining and Nullish Coalescing in ...
The optional chaining operator provides a way to simplify accessing values through connected objects when it's possible that a reference or function may...
Read more >How can I use optional chaining and nullish coalescing in my ...
The optional chaining operator ( ?. ) allows us to access deeply nested object properties without having to validate each reference in the ......
Read more >Optional chaining and nullish coalescing in TypeScript
Optional chaining is often used together with nullish coalescing, which is the ability to fall back to a default value when the primary ......
Read more >How to Use Optional Chaining in JavaScript - freeCodeCamp
We know that if any ?. check equates to a nullish value within the chain, it will return undefined . So we can...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Acorn
PR has been merged, now waiting for theescodegen
PR. Alsoestraverse
does not support this syntax out of the box, but there isfallback
property to ignore it.Will be released soon as
2.7.0