One of my favorite ECMAScript Proposals is the “Optional Chaining Operator”. Another proposal that forms great duo with it is the “Nullish Coalescing Operator” (sometimes also referred to as “Nullary Coalescing Operator”).
Both proposals still are Stage-1, but don’t let that stop us from taking a peek into it right now.
As explained in the “Optional Chaining Operator” post we can get properties of an object in a fail safe way using Short-Circuit Logic…
#codango #developer #development #coder #coding
We're happy to share this resource that we found. The content displayed on this page is property of it's original author and/or their organization.