Function

JSValueGetTypedArrayType(_:_:_:)

Returns a JavaScript value’s Typed Array type.

Declaration

func JSValueGetTypedArrayType(_ ctx: JSContextRef!, _ value: JSValueRef!, _ exception: UnsafeMutablePointer<JSValueRef?>!) -> JSTypedArrayType

Parameters

ctx

The execution context to use.

value

The JSValue whose Typed Array type to return.

exception

A pointer to a JSValueRef in which to store an exception, if any. Pass NULL if you do not care to store an exception.

Return Value

A value of type JSTypedArrayType that identifies value's Typed Array type, or kJSTypedArrayTypeNone if the value is not a Typed Array object.