Check out example codes for "typescript double question mark". It will help you in understanding the concepts better.

Code Example 1

A = A ?? B;
//it is the same as
if( null != A )
    A = A;
else
    A = B;

Learn ReactJs, React Native from akashmittal.com