Contents

JSValueMakeBoolean(_:_:)

Creates a JavaScript Boolean value.

Declaration

func JSValueMakeBoolean(_ ctx: JSContextRef!, _ boolean: Bool) -> JSValueRef!

Parameters

  • ctx:

    The execution context to use.

  • boolean:

    The Boolean value to assign to the newly created Jsvalueref.

Return Value

A JSValueRef of the Boolean type that represents the value of boolean.

See Also

Creating Values