Contents

JSValueIsBoolean(_:_:)

Tests whether a JavaScript value is Boolean.

Declaration

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

Parameters

  • ctx:

    The execution context to use.

  • value:

    The Jsvalueref to test.

Return Value

true if value is a Boolean; otherwise, false.

See Also

Testing the Value’s Type