TypeScript Null et Undefined Check
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();