Global

Members

(constant) utils

Declare utils

.

Source:

Declare utils

Methods

isArray(arg) → {Boolean}

Check if a given argument is type Array

.

Source:

Check if a given argument is type Array

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type Array

Type
Boolean

isBoolean(arg) → {Boolean}

Check if a given argument is type Boolean

.

Source:

Check if a given argument is type Boolean

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type boolean

Type
Boolean

isDate(arg) → {Boolean}

Check if a given argument is type 'Date'

.

Source:

Check if a given argument is type 'Date'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type Date

Type
Boolean

isEmpty(arg) → {Boolean}

Check if a given argument is Empty

.

Source:

Check if a given argument is Empty

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is Empty

Type
Boolean

isError(arg) → {Boolean}

Check if a given argument is Error

.

Source:

Check if a given argument is Error

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is Error

Type
Boolean

isFunction(arg) → {Boolean}

Check if a given argument is type 'function'

.

Source:

Check if a given argument is type 'function'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type Undefined

Type
Boolean

isNotArray(arg) → {Boolean}

Check if a given argument is not type 'Array'

.

Source:

Check if a given argument is not type 'Array'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Array

Type
Boolean

isNotBoolean(arg) → {Boolean}

Check if a given argument is type Boolean

.

Source:

Check if a given argument is type Boolean

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type boolean

Type
Boolean

isNotDate(arg) → {Boolean}

Check if a given argument is not type 'date'

.

Source:

Check if a given argument is not type 'date'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Date

Type
Boolean

isNotEmpty(arg) → {Boolean}

Check if a given argument is not Empty

.

Source:

Check if a given argument is not Empty

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not Empty

Type
Boolean

isNotError(arg) → {Boolean}

Check if a given argument is not Error

.

Source:

Check if a given argument is not Error

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not an Error

Type
Boolean

isNotFunction(arg) → {Boolean}

Check if a given argument is not type 'function'

.

Source:

Check if a given argument is not type 'function'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Undefined

Type
Boolean

isNotNull(arg) → {Boolean}

Check if a given argument is not type 'null'

.

Source:

Check if a given argument is not type 'null'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Null

Type
Boolean

isNotNullOrUndefined(arg) → {Boolean}

Check if a given argument is not null or undefined

.

Source:

Check if a given argument is not null or undefined

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not null or undefined

Type
Boolean

isNotNumber(arg) → {Boolean}

Check if a given argument is not type 'boolean'

.

Source:

Check if a given argument is not type 'boolean'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Boolean

Type
Boolean

isNotObject(arg) → {Boolean}

Check if a given argument is not type 'object'

.

Source:

Check if a given argument is not type 'object'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Object

Type
Boolean

isNotPrimitive(arg) → {Boolean}

Check if a given argument is not a primitive type

.

Source:

Check if a given argument is not a primitive type

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not a primitive type

Type
Boolean

isNotRegExp(arg) → {Boolean}

Check if a given argument is not type 'RegExp'

.

Source:

Check if a given argument is not type 'RegExp'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type RegExp

Type
Boolean

isNotString(arg) → {Boolean}

Check if a given argument is not type 'string'

.

Source:

Check if a given argument is not type 'string'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type String

Type
Boolean

isNotSymbol(arg) → {Boolean}

Check if a given argument is not type 'Symbol'

.

Source:

Check if a given argument is not type 'Symbol'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Symbol

Type
Boolean

isNotUndefined(arg) → {Boolean}

Check if a given argument is not type 'undefined'

.

Source:

Check if a given argument is not type 'undefined'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Undefined

Type
Boolean

isNull(arg) → {Boolean}

Check if a given argument is not type 'null'

.

Source:

Check if a given argument is not type 'null'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Null

Type
Boolean

isNullOrUndefined(arg) → {Boolean}

Check if a given argument is null or undefined

.

Source:

Check if a given argument is null or undefined

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is null or undefined

Type
Boolean

isNumber(arg) → {Boolean}

Check if a given argument is type 'boolean'

.

Source:

Check if a given argument is type 'boolean'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type Boolean

Type
Boolean

isObject(arg) → {Boolean}

Check if a given argument is type 'object'

.

Source:

Check if a given argument is type 'object'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type Object

Type
Boolean

isPrimitive(arg) → {Boolean}

Check if a given argument is a primitive type

.

Source:

Check if a given argument is a primitive type

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is a primitive type

Type
Boolean

isRegExp(arg) → {Boolean}

Check if a given argument is type 'RegExp'

.

Source:

Check if a given argument is type 'RegExp'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type RegExp

Type
Boolean

isString(arg) → {Boolean}

Check if a given argument is type 'string'

.

Source:

Check if a given argument is type 'string'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is type String

Type
Boolean

isSymbol(arg) → {Boolean}

Check if a given argument is not type 'Symbol'

.

Source:

Check if a given argument is not type 'Symbol'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Symbol

Type
Boolean

isUndefined(arg) → {Boolean}

Check if a given argument is not type 'undefined'

.

Source:

Check if a given argument is not type 'undefined'

Parameters:
Name Type Description
arg *

value to be test

Returns:

return true when value is not type Undefined

Type
Boolean