I saw this code but did not understand what this symbole means in Javascript or typescript:
const _apolloClient = apolloClient ?? createApolloClient(context);
I saw this code but did not understand what this symbole means in Javascript or typescript:
const _apolloClient = apolloClient ?? createApolloClient(context);
If firstValue
is null or undefined
console.log(firstValue ?? secondValue) // secondValue
If firstValue
isn't null or undefined
console.log(firstValue ?? secondValue) // firstValue