JSValueToBoolean top-level property

bool Function(JSContextRef ctx, JSValueRef value) JSValueToBoolean
final

Converts a JavaScript value to boolean and returns the resulting boolean. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue to convert. @result (bool) The boolean result of conversion.

Implementation

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