Product Site

5.1.4.14. isInstanceOf

Returns .true if the object is an instance of the specified class, otherwise it returns .false, An object is an instance of a class if the object is directly an instance of the specified class or if class is in the object's direct or mixin class inheritance chain. For example:
Example 5.32. Object class — isInstanceOf method
"abc"~isInstanceOf(.string)             -->  1
"abc"~isInstanceOf(.object)             -->  1
"abc"~isInstanceOf(.mutablebuffer)      -->  0