We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I'll try to explain my thoughts with the help of examples.
The variable var will be null if there is no obj key:
var
null
obj
## set var = obj?
The variable var will be null if there is no obj key or obj exists but no obj.key exists:
obj.key
## set var = obj?.key?
The variable var will be null if there is no obj key or throws if there is no obj.key exists:
## set var = obj?.key
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'll try to explain my thoughts with the help of examples.
The variable
var
will benull
if there is noobj
key:The variable
var
will benull
if there is noobj
key orobj
exists but noobj.key
exists:The variable
var
will benull
if there is noobj
key or throws if there is noobj.key
exists:The text was updated successfully, but these errors were encountered: