Namespace: Basic:isNumber

Basic:isNumber

Source:

Methods

isNumber(value) → {Boolean}

Returns if a value is a number.

Hint: to check numbers in more detail, use isInt, isFloat and isNaN

Parameters:
Name Type Description
value *

the value to check

Source:
See:
Returns:
true if value is a number
Type
Boolean
Example
if( isNumber(val) ){
  result = val * 5;
}