The optional chaining operator allows you to simply check deep chains in a within an object without having to verify every step.
Syntax
object?.prop1?.prop2?.prop3
Example
Support
Current support is all major browsers except IE.
For further actions, you may consider blocking this person and/or reporting abuse
Fixing code doesn’t have to be the worst part of your day. Learn how Sentry can help.
Mike Young -
Mike Young -
Mike Young -
Mike Young -
Top comments (0)