short-circuiting
Last updated
Was this helpful?
Last updated
Was this helpful?
⟩ ⟩ ⟩ ⟩ ⟩ short-circuiting
logical operator (&&, ||) - a && b, a || b
nullish coalescing (??) - a ?? b
conditional operator (?:) - condition ? a : b
optional chaining (?., ?.[]) - obj ?. prop, obj ?. [prop]
optional invocation ?.() - f ?. (args)
⟩