There are always alternatives if you can also write
if(user.auth?.isLoggedIn===true){// user is logged in!}
Nobody is forcing anybody to use the ?? operator but I think it just fits nicely together with the ?. and makes the intent clear if the developer knows how both of them work.
Log in to continue
We're a place where coders share, stay up-to-date and grow their careers.
There are always alternatives if you can also write
Nobody is forcing anybody to use the
??
operator but I think it just fits nicely together with the?.
and makes the intent clear if the developer knows how both of them work.