Contents

JSValueIsObjectOfClass(_:_:_:)

Tests whether a JavaScript value is an object with a specified class in its class chain.

Declaration

func JSValueIsObjectOfClass(_ ctx: JSContextRef!, _ value: JSValueRef!, _ jsClass: JSClassRef!) -> Bool

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref to test.

  • jsClass:

    The Jsclassref to test against.

Return Value

true if value is an object and has jsClass in its class chain; otherwise, false.

See Also

Testing the Value’s Type