mozilla
Your Search Results

    JSVAL_IS_PRIMITIVE

    Obsolete since JSAPI 32
    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 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.

    See Also

    Document Tags and Contributors

    Contributors to this page: arai, fscholz, Jorend, Piers, Rappo
    Last updated by: arai,
    Hide Sidebar