API/libsapojs/SAPO/Utility/Variable

[Elements] are optional

Class SAPO.Utility.Variable


class SAPO.Utility.Variable
set of functions to check the variable type
Defined in Utility/Variable/0.1/lib.js

Function Summary
Boolean isArray ( variable)
Checks if the variable is an Array
Boolean isBoolean ( variable)
Checks if the variable is an Boolean
Boolean isNull ( variable)
Checks if the variable is an Null
Boolean isNumber ( variable)
Checks if the variable is an Number
Boolean isObject ( variable)
Checks if the variable is an Object
Boolean isString ( variable)
Checks if the variable is an String

Function Details

function isArray

Boolean isArray( variable)
Checks if the variable is an Array
Parameters:
variable
Returns:
true if the variable is an Array

function isBoolean

Boolean isBoolean( variable)
Checks if the variable is an Boolean
Parameters:
variable
Returns:
true if the variable is an Boolean

function isNull

Boolean isNull( variable)
Checks if the variable is an Null
Parameters:
variable
Returns:
true if the variable is an Null

function isNumber

Boolean isNumber( variable)
Checks if the variable is an Number
Parameters:
variable
Returns:
true if the variable is an Number

function isObject

Boolean isObject( variable)
Checks if the variable is an Object
Parameters:
variable
Returns:
true if the variable is an Object

function isString

Boolean isString( variable)
Checks if the variable is an String
Parameters:
variable
Returns:
true if the variable is an String