- Source:
Classes
Methods
(inner) typeName(x) → {"undefined"|"object"|"boolean"|"number"|"string"|"function"|"symbol"|"bigint"|*}
- Source:
If is class or function return class/function name else returns typeof
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- "undefined" | "object" | "boolean" | "number" | "string" | "function" | "symbol" | "bigint" | *
(inner) isUnd(x) → {boolean}
- Source:
Is undefined
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isNull(x) → {boolean}
- Source:
Is null
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isVal(x) → {boolean|boolean}
- Source:
Is value !null && !undefined
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean | boolean
(inner) isNum(x) → {boolean}
- Source:
Is number
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isStr(x) → {boolean}
- Source:
Is string|String
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isFun(x) → {boolean}
- Source:
Is function
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isObj(x) → {boolean|boolean}
- Source:
Is object
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean | boolean
(inner) isArr(x) → {boolean}
- Source:
Is Array
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isPrim(x) → {boolean}
- Source:
Is primitive isVal && !isObj && !isFun
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isList(x) → {boolean|boolean}
- Source:
Is List (has length property and item() function)
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean | boolean
(inner) isMutableList(x) → {boolean}
- Source:
Is MutableList (has length property, item() and add() functions)
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isSet(x) → {boolean}
- Source:
Is Set type
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isMap(x) → {boolean}
- Source:
Is Map type
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isError(x) → {boolean}
- Source:
Is Error type
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isEl(x) → {boolean}
- Source:
Is Element/Node
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) isEls(x) → {boolean}
- Source:
Is NodeList || HTMLCollection
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) hasField(obj, field, predopt) → {boolean}
- Source:
Object has field
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
obj |
Object | source object | |
field |
String | field/property name | |
pred |
function |
<optional> |
optional predicate function to check field |
Returns:
- Type
- boolean
(inner) isEmpty(x) → {boolean}
- Source:
Is Empty Array/List/Object/String
Parameters:
Name | Type | Description |
---|---|---|
x |
Returns:
- Type
- boolean
(inner) dict(…args) → {Object}
- Source:
Deserialize sequence of key values (key, value, ...) into an object
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
any |
<repeatable> |
key{String}, value{*} sequence |
Returns:
- Type
- Object