Methods
(static) isNullOrUndefined(arg) → {boolean}
判断给定参数是否 null/undefined
Parameters:
Name | Type | Description |
---|---|---|
arg |
* |
Returns:
- Type
- boolean
(static) prefix(obj, prefix) → {*}
添加指定的前缀
Parameters:
Name | Type | Description |
---|---|---|
obj |
* | |
prefix |
string |
Returns:
- Type
- *
(static) unprefix(obj, prefix) → {*}
移除指定的前缀
Parameters:
Name | Type | Description |
---|---|---|
obj |
* | |
prefix |
string |
Returns:
- Type
- *