Members
(constant) utils
Declare utils
.Declare utils
Methods
isArray(arg) → {Boolean}
Check if a given argument is type Array
.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
.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'
.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
.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
.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'
.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'
.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
.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'
.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
.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
.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'
.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'
.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
.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'
.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'
.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
.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'
.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'
.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'
.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'
.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'
.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
.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'
.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'
.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
.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'
.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'
.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'
.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'
.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