SAPO::Utility.Variable->isString

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

This is static method.

Syntax

SAPO.Utility.Variable.isString(variable)

Compatibility

All browsersYes

Depends

Input Parameters

  • mixed var : Input variable

Sample

Example

alert(SAPO.Utility.Variable.isString('this is a string')); 
will return true;

alert(SAPO.Utility.Variable.isString(1234)); 
will return false

Community feedback

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