JSValueIsBoolean top-level property

bool Function(JSContextRef ctx, JSValueRef value) JSValueIsBoolean
final

Tests whether a JavaScript value's type is the boolean type. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to test. @result (bool) true if value's type is the boolean type, otherwise false.

Implementation

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