Contents

JSValueToBoolean(_:_:)

Converts a JavaScript value to a Boolean and returns the resulting Boolean.

Declaration

func JSValueToBoolean(_ ctx: JSContextRef!, _ value: JSValueRef!) -> Bool

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref to convert.

Return Value

The Boolean result of conversion.

See Also

Converting to Primitive Values