Implement instanceof operator, which adds support for type checks against classes. This is simply the same behaviour as in JavaScript and allows the user to verify the type of an object.
Exact behaviour / changes you want
[ ] Implement instanceof keyword and operator.
[ ] Add target code generation for instanceof type checks.
Is there an existing proposal for this?
This feature does not exist in the latest version
Proposal
Implement
instanceof
operator, which adds support for type checks against classes. This is simply the same behaviour as in JavaScript and allows the user to verify the type of an object.Exact behaviour / changes you want
instanceof
keyword and operator.instanceof
type checks.