JSVAL_IS_OBJECT

Obsolete
This feature is obsolete. Although it may still work in some browsers, its use is discouraged since it could be removed at any time. Try to avoid using it.

Determine whether a given jsval is an object or null.

Syntax

JSBool JSVAL_IS_OBJECT(jsval v);

Description

JSVAL_IS_OBJECT(v) returns true if v is either an object or JSVAL_NULL. This indicates that it is safe to call JSVAL_TO_OBJECT(v) to convert v to type JSObject *. If v is a string, number, boolean, or undefined, the result is false.

This function is obsolete and has been removed. Instead use !JSVAL_IS_PRIMITIVE(v) to detect objects and JSVAL_IS_NULL(v) to detect null.

See Also

MXR ID Search for JSVAL_IS_OBJECT

JSVAL_IS_BOOLEAN, JSVAL_IS_DOUBLE, JSVAL_IS_INT, JSVAL_IS_NULL, JSVAL_IS_NUMBER, JSVAL_IS_PRIMITIVE, JSVAL_IS_STRING, JSVAL_IS_VOID

Document Tags and Contributors

Contributors to this page: Waldo, Jorend, Rappo
Last updated by: Jorend,