Nullish Coalescing

This lesson explains the new nullish coalescing operator.

Nullish coalescing for an object

TypeScript 3.7 brought the nullish coalescing operator: ??. On the left side of the operator is a variable or condition. On the right side is the result if the condition is null or undefined.

One use case for this operator is to ...