JSValueMakeNumber(_:_:)
Creates a JavaScript value of the number type.
Declaration
func JSValueMakeNumber(_ ctx: JSContextRef!, _ number: Double) -> JSValueRef!Parameters
- ctx:
The execution context to use.
- number:
The double to assign to the newly created Jsvalueref.
Return Value
A JSValueRef of the number type that represents the value of number.