Optional Chaining
?.
is how we achieve optional chaining
Just as ??
doesn't abide by JS falsy (instead, only undefined
/null
), so too does the ?.
operator
Example:
const eligibleRegion = publishingDetails?.salesRights?.[0]?.countriesIncluded?.map
Backlinks