Logical Nullish Assignment (??=)
Description
TheLogical Nullish Operator (??=) returns the right-side operand when the left-side operandis null or undefined. Otherwise it returns the left-side operand.
Learn More:
Browser Support
??= is a JavaScript 2020 feature.
ES 2020 is supported in all modern browsers sinceSeptember 2020:
| Chrome 85 | Edge 85 | Firefox 79 | Safari 14 | Opera 71 |
| Aug 2020 | Aug 2020 | Mar 2020 | Sep 2020 | Sep 2020 |

