JSValueIsObjectOfClass top-level property

bool Function(JSContextRef ctx, JSValueRef value, JSClassRef jsClass) JSValueIsObjectOfClass
final

Tests whether a JavaScript value is an object with a given class in its class chain. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to test. jsClass (JSClassRef) The JSClass to test against. @result (bool) true if value is an object and has jsClass in its class chain, otherwise false.

Implementation

final bool Function(JSContextRef ctx, JSValueRef value, JSClassRef jsClass)
JSValueIsObjectOfClass =
    kLookup<
      NativeFunction<Bool Function(JSContextRef, JSValueRef, JSClassRef)>
    >('JSValueIsObjectOfClass').asFunction();