class Foo {
// regular method, could be static as well
anyMethod(){...}
// the weird case of a method called `class`...
static class(){...}
}
const fooObj = new Foo();
Input value | getType() returns |
is<Type>() function(s) |
---|---|---|
Foo |
Class |
|
fooObj |
Foo |
|
fooObj.anyMethod |
Function |
isFunction() , isCallable() |
Foo.class |
Function |
isFunction() , isCallable() |