Back to Types
isa
Test if a value is an instance of a type.
Syntax
isa(x, T) → true if x is of type T
Backends
TypeScript
Description
Test if a value is an instance of a type.
Parameters
| Name | Description |
|---|---|
| x | Value to test |
| T | Type to check against |
Returns
true if x is of type T