Entry: JSVAL_IS_DOUBLE (Macro)
Summary: Determines if a specified JS value is a JS double data type.
Syntax:
JSVAL_IS_DOUBLE(v)
Description:
Use JSVAL_IS_DOUBLE to determine if a given value, v, is a JS double value. If the type tag for v is JSVAL_DOUBLE, JSVAL_IS_DOUBLE 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 a JS double data type.
if (JSVAL_IS_DOUBLE(MyItem)) {
. . .
}
See also:
|
|
|