ES2020 now has the nullish coalescing operator ??. If the left operand is null or undefined, the right hand operand is used, if itβs not, then the left
const coalesced = undefined ?? 42
// 42
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
ES2020 now has the nullish coalescing operator
??. If the left operand is null or undefined, the right hand operand is used, if itβs not, then the left