✌️JavaScript's ??= Operator: Default Values Made Simple
The ??= nullish coalescing assignment operator snuck into JavaScript a few years ago via ECMAScript 2021 and has been broadly supported almost everywhere for ages. Trevor shows off how it can tighten up your assignments here.
Trevor I. Lasn