Typescript Control Stuctures: Examples + Reference

Typescript Control Stuctures: Examples + Reference

Last updated:

WIP Alert This is a work in progress. Current information is correct but more content will probably be added in the future.

If else

if(name == 'foo' || name == 'bar' ){
    // do stuff
} else if(name == 'baz' && name2 == 'quux') {
    // do stuff
} else {
    // do stuff
}