JavaScript-1.5 Reference

JS_TypeOfValue Function

Summary

Determines the JS data type of a JS value.

Syntax

JSType JS_TypeOfValue(JSContext *cx, jsval v);
NameTypeDescription
cxJSContext *Pointer to a JS context from which to derive runtime information.
vjsvalThe JS 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

Groups [ Function ]
Documents [ LXR ID Search ]
Entries [ JS_ConvertValue | JS_GetTypeName | JS_ValueToBoolean | JS_ValueToFunction | JS_ValueToInt32 | JS_ValueToNumber | JS_ValueToObject | JS_ValueToString ]

This page was generated by APIDOC