JSValueIsNumber top-level property

bool Function(JSContextRef ctx, JSValueRef value) JSValueIsNumber
final

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

Implementation

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