|
|
Summary
Determines if a specified JS value is void.
|
Syntax
JSVAL_IS_VOID(v)
|
Description
Use JSVAL_IS_VOID to determine if a given value, v, is void. If v is JSVAL_VOID, JSVAL_IS_VOID evaluates to true. Otherwise, it evaluates to false. These return types are C values, not JS Boolean values.
|
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)) {
. . .
}
|
Notes
In JavaScript and in the ECMA language standard, the C type, void, indicates an "undefined" value.
|
See Also
|