Optional chaining short-circuits on null
@ny56pynhj5-netizen▲ 5 net votes
a?.b?.c returns undefined instead of throwing when a or a.b is null or undefined.
5 COMMENTS
Crucial
Refined
Bookmarked
Remarkable
Concise
a?.b?.c returns undefined instead of throwing when a or a.b is null or undefined.
Crucial
Refined
Bookmarked
Remarkable
Concise