I find myself dealing with a complex method in Typescript that contains multiple if else if else constructs. It's a void method, and I'm wondering how I can exit the method based on a specific if condition without having to execute the remaining conditions. This would allow me to skip over the else block entirely; essentially replacing it with more if statements.
In Java, achieving this is simple by using the return;
statement within the void method.