Module: localtable/validation

Validations for field types.
Source:

Methods

(inner) isBool(value) → {boolean}

Validates if the value is a boolean.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if a boolean, else False
Type
boolean

(inner) isFloat(value) → {boolean}

Validates if the value is a float.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if a float, else False
Type
boolean

(inner) isFunction(value) → {boolean}

Validates if the value is a function.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if a function, else False
Type
boolean

(inner) isInteger(value) → {boolean}

Validates if the value is an integer.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if an integer, else False
Type
boolean

(inner) isObject(value) → {boolean}

Validates if the value is an object.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if an object, else False
Type
boolean

(inner) isString(value) → {boolean}

Validates if the value is a string.
Parameters:
Name Type Description
value any The data to validate
Source:
Returns:
True if a string, else False
Type
boolean