Optional Chaining Operator
Symbol: ?.
Translated to JavaScript optional chaining operator.
#
Optional field gettingYou can get b
field from a
map in two ways:
or:
#
Optional field getting by dynamic key#
Function callsequals to:
You can call function b
if it exists in map a
with parameter 1
with such syntax: