🔰short-circuiting

JSstatementexpressionoperatorterm ⟩ short-circuiting

a && b               // b may not be evaluated
a ?? b               // (same)
condition ? a : b    // only one of a and b is evaluated
obj ?. prop          // prop may not be evaluated
f ?. (args)          // args expressions may not be evaluated

🌟 table of operators

Last updated