JSValueGetType top-level property

int Function(JSContextRef ctx, JSValueRef value) JSValueGetType
final

Returns a JavaScript value's type. ctx (JSContextRef) The execution context to use. value (JSValueRef) The JSValue whose type you want to obtain. @result (JSType) A value of type JSType that identifies value's type.

Implementation

final int /*JSType*/ Function(JSContextRef ctx, JSValueRef value)
JSValueGetType =
    kLookup<NativeFunction<Uint32 Function(JSContextRef, JSValueRef)>>(
      'JSValueGetType',
    ).asFunction();