Function JSValueIsObjectOfClass

Source
pub unsafe extern "C" fn JSValueIsObjectOfClass(
    ctx: JSContextRef,
    value: JSValueRef,
    jsClass: JSClassRef,
) -> bool
Expand description

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

  • ctx: The execution context to use.
  • value: The JSValueRef to test.
  • jsClass: The JSClassRef to test against.

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