Udostępnij za pośrednictwem


Type.isImplementedBy Method

Determines whether an instance implements an interface.

var isImplementedVar = aType.isImplementedBy(typeInstanceVar);

Parameters

  • typeInstanceVar
    The instance on which the interface is tested.

Return Value

true if typeInstanceVar implements the interface; false if typeInstanceVar does not implement the interface, or if it is undefined or null.

Remarks

Use the isImplementedBy method to determine whether an instance implements a specific interface.

See Also

Reference

Type Class