Function isInstanceOf

TypeGuard wrapper for instanceof keyword.

class Person {
constructor(public name: string) {}
}

const john = new Person("John");
isInstanceOf(john, Person);
// => true
// john is instanceof Person