Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

JS_TypeOfValue

Determines the JS data type of a JS value.

Syntax

JSType
JS_TypeOfValue(JSContext *cx, JS::Handle<JS::Value> v);
Name Type Description
cx JSContext * The context in which to perform the type check. Requires request. In a JS_THREADSAFE build, the caller must be in a request on this JSContext.
v JS::Handle<JS::Value> The value to examine.

Description

JS_TypeOfValue examines a specified JS value, v, and returns its JS data type. The return value is always one of JSTYPE_VOID, JSTYPE_OBJECT, JSTYPE_FUNCTION, JSTYPE_STRING, JSTYPE_NUMBER, or JSTYPE_BOOLEAN.

See Also

Document Tags and Contributors

 Contributors to this page: arai, fscholz, Jorend, Dria, MMondor
 Last updated by: arai,