TypeScript NULL i niezdefiniowany czek
if(!!someValue)
Gorgeous Gnat
if(!!someValue)
let x = foo ?? bar(); // return foo if it's not null or undefined otherwise calculate bar
let x = foo?.bar.baz();