Let's say I have an object Response. Now I would like to check a boolean variable, success, under Response and do an early return is response is not successful.
Since TypeScript is strongly-typed, simply using if () {} to check for null and undefined doesn't sound right. Does TypeScript have any dedicated function or