Cheddar Documentation
Search
⌃
K
Cheddar Documentation
Search
⌃
K
Introduction
Syntax
Literals
Mathematics
Variables
Functions
Default Operators
What Is
Instance-of
Actually Is
Control Flow
Standard Library
Developing
Powered By
GitBook
Comment on page
Instance-of
Syntax
obj
is
Foo
Explanation
Returns if the left operand is an instance of the right operand. If an object is an instanceof a class's superclass, this operator will return true for the superclass.
Examples
// Where: Dog IS-A Animal
let
o
:
=
Dog
{
...
}
o
is
Animal
Previous
What Is
Next
Actually Is
Last modified
3yr ago