A JavaScript value that is the base type for all JavaScript values and the polymorphic functions on them.
Framework
- JavaScriptCore
A JavaScript value that is the base type for all JavaScript values and the polymorphic functions on them.
Framework
func JSValue Create JSONString(JSContext Ref!, JSValue Ref!, UInt32, Unsafe Mutable Pointer<JSValue Ref?>!)Creates a JavaScript string containing the JSON serialized representation of a JavaScript value.
func JSValue Get Type(JSContext Ref!, JSValue Ref!)Returns a JavaScript value's type.
func JSValue Is Boolean(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value is boolean.
func JSValue Is Equal(JSContext Ref!, JSValue Ref!, JSValue Ref!, Unsafe Mutable Pointer<JSValue Ref?>!)Tests whether two JavaScript values are equal, as compared by the JS == operator.
func JSValue Is Instance Of Constructor(JSContext Ref!, JSValue Ref!, JSObject Ref!, Unsafe Mutable Pointer<JSValue Ref?>!)Tests whether a JavaScript value is an object constructed by a given constructor, as compared by the is operator.
func JSValue Is Null(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value's type is the null type.
func JSValue Is Number(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value's type is the number type.
func JSValue Is Object(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value's type is the object type.
func JSValue Is Object Of Class(JSContext Ref!, JSValue Ref!, JSClass Ref!)Tests whether a JavaScript value is an object with a given class in its class chain.
func JSValue Is Strict Equal(JSContext Ref!, JSValue Ref!, JSValue Ref!)Tests whether two JavaScript values are strict equal, as compared by the JS === operator.
func JSValue Is String(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value's type is the string type.
func JSValue Is Undefined(JSContext Ref!, JSValue Ref!)Tests whether a JavaScript value's type is the undefined type.
func JSValue Make Boolean(JSContext Ref!, Bool)Creates a JavaScript value of the boolean type.
func JSValue Make From JSONString(JSContext Ref!, JSString Ref!)Creates a JavaScript value from a JSON formatted string.
func JSValue Make Null(JSContext Ref!)Creates a JavaScript value of the null type.
func JSValue Make Number(JSContext Ref!, Double)Creates a JavaScript value of the number type.
func JSValue Make String(JSContext Ref!, JSString Ref!)Creates a JavaScript value of the string type.
func JSValue Make Undefined(JSContext Ref!)Creates a JavaScript value of the undefined type.
func JSValue Protect(JSContext Ref!, JSValue Ref!)Protects a JavaScript value from garbage collection.
func JSValue To Boolean(JSContext Ref!, JSValue Ref!)Converts a JavaScript value to boolean and returns the resulting boolean.
func JSValue To Number(JSContext Ref!, JSValue Ref!, Unsafe Mutable Pointer<JSValue Ref?>!)Converts a JavaScript value to number and returns the resulting number.
func JSValue To Object(JSContext Ref!, JSValue Ref!, Unsafe Mutable Pointer<JSValue Ref?>!)Converts a JavaScript value to object and returns the resulting object.
func JSValue To String Copy(JSContext Ref!, JSValue Ref!, Unsafe Mutable Pointer<JSValue Ref?>!)Converts a JavaScript value to string and copies the result into a JavaScript string.
func JSValue Unprotect(JSContext Ref!, JSValue Ref!)Unprotects a JavaScript value from garbage collection.
struct JSTypeA constant identifying the type of a JSValue.
Defines the JavaScriptCore interface engine
A JavaScript Object
A UTF16 character buffer that is the fundamental string representation in JavaScript.
Contains CFString convenience methods.