User-defined Type Guards

Type guarding functions

Using instanceof

Using typeof