The nulliish coalescing operator (
??) allows us to be more explicit when setting object defaults. It allows us to ensure that only values that are "nullish" (either null or undefined) cause the default value to be taken, rather than anything that evaluates to false.
It's a safer way to operate.
Please note: This feature is still making its way through the TC39 proposal process. To use it in your project today, you can enable it using Babel's Nullish Coalescing plugin.
A Community Resource means that it’s free to access for all. The instructor of this lesson requested it to be open to the public.