| ||||||
SummaryDetermines if a specified value is a JS integer data type. | ||||||
SyntaxJSVAL_IS_INT(v) | ||||||
DescriptionUseJSVAL_IS_INT to determine if a given JS value, v , is a JS integer value. If the type tag for v is JSVAL_INT and is not JSVAL_VOID , JSVAL_IS_INT evaluates to true . Otherwise, it evaluates to false . These return types are C values, not JS Boolean values.
| ||||||
ExampleThe following code snippet illustrates how a JavaScript variable, MyItem, is conditionally tested in an if statement to see if it is a JS integer data type.if (JSVAL_IS_INT(MyItem)) { . . . } | ||||||
See Also
|