Join MDN and developers like you at Mozilla's View Source conference, 12-14 September in Berlin, Germany. Learn more at https://viewsourceconf.org

JSVAL IS PRIMITIVE

Determine if a given jsval is of a primitive type.

Syntax

JSVAL_IS_PRIMITIVE(v)

Description

JSVAL_IS_PRIMITIVE(v) is true if v is undefined, null, a boolean, a number, or a string. Otherwise it is false, and v is an object.

MXR ID Search for JSVAL_IS_PRIMITIVE

Document Tags and Contributors

 Last updated by: Jorend,