typeUtils

Source:

This module contains functions used to check variable type.

Methods

(static) isArray(value) → {Boolean}

Source:

Check if a value is an array.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is an array, false otherwise.

Type
Boolean

(static) isDigit(value) → {Boolean}

Source:

Check if a value is a digit.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a digit, false otherwise.

Type
Boolean

(static) isFloat(value) → {Boolean}

Source:

Check if a value is a float.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a float, false otherwise.

Type
Boolean

(static) isInteger(value) → {Boolean}

Source:

Check if a value is an integer.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is an integer, false otherwise.

Type
Boolean

(static) isLetter(value) → {Boolean}

Source:

Check if a value is a letter.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a letter, false otherwise.

Type
Boolean

(static) isLetterOrDigit(value) → {Boolean}

Source:

Check if a value is a letter or a digit.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a letter or a digit, false otherwise.

Type
Boolean

(static) isNumber(value) → {Boolean}

Source:

Check if a value is a number.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a number, false otherwise.

Type
Boolean

(static) isObject(value) → {Boolean}

Source:

Check if a value is an object.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is an object, false otherwise.

Type
Boolean

(static) isString(value) → {Boolean}

Source:

Check if a value is a string.

Parameters:
Name Type Description
value Any

Value to be checked.

Returns:

Returns true if a value is a string, false otherwise.

Type
Boolean