TLDR Web Dev · QUICK LINKS
JAVASCRIPT'S ??= OPERATOR: DEFAULT VALUES MADE SIMPLE
Summary from the TLDR Web Dev newsletter
The ??= operator can be used to handle null and undefined values in JavaScript by only assigning a new value if the current is null or undefined.