⬅️ FEM TypeScript Fundamentals
Nullish coalescing ??
null
means there’s a value, and the value is nothingundefined
means the value isn’t available (yet)- similar to the JavaScript logical OR operator,
||
. But unlike||
, it doesn’t treat0
and''
as falsey. - aka “returning the first value that isn’t
null
orundefined
”