Zebra API Doc

zebra.instanceOf()

instanceOf

(
  • obj
  • clazz
)
Boolean

Test if the given object is instance of the specified class or interface. It is preferable to use this method instead of JavaScript "instanceof" operator whenever you are dealing with zebra classes and interfaces.

Parameters:

  • obj Object

    an object to be evaluated

  • clazz Function

    a class or interface


Return: Boolean

true if a passed object is instance of the given class or interface