SAPO::Utility.Variable->isNumber

This method will check if the passed variable is a Number.

This is static method.

Syntax

SAPO.Utility.Variable.isNumber(variable)

Compatibility

All browsersYes

Depends

Input Parameters

  • mixed var : Input variable

Sample

Example

alert(SAPO.Utility.Variable.isNumber(123)); 
will return true;

alert(SAPO.Utility.Variable.isNumber([1,2,3])); 
will return false

Community feedback

Error: Failed to load processor AddComment
No macro or processor named 'AddComment' found