Mozilla.com

Table of contents
  1. 1. Syntax
  2. 2. Description
  3. 3. Example
Table of contents
  1. 1. Syntax
  2. 2. Description
  3. 3. Example

Determines if a given jsval is the JavaScript value undefined.

Syntax

JSVAL_IS_VOID(v)

Description

JSVAL_IS_VOID(v) is true if v is JSVAL_VOID, which represents the JavaScript value undefined.

Example

The following code snippet illustrates how a JavaScript variable, MyItem, is conditionally tested in an if statement to see if it is void.

if (JSVAL_IS_VOID(MyItem)) {
    ...
}

LXR ID Search for JSVAL_IS_VOID

Page last modified 20:11, 5 Sep 2008 by Jorend

Files (0)