Contents

JSValueGetType(_:_:)

Returns a JavaScript value’s type.

Declaration

func JSValueGetType(_ ctx: JSContextRef!, _ value: JSValueRef!) -> JSType

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref with the type you want to obtain.

Return Value

A JSType value that identifies the value’s type.

See Also

Testing the Value’s Type