Namespace: utils

utils

Source:

Methods

(static) isNullOrUndefined(arg) → {boolean}

判断给定参数是否 null/undefined
Parameters:
Name Type Description
arg *
Source:
Returns:
Type
boolean

(static) prefix(obj, prefix) → {*}

添加指定的前缀
Parameters:
Name Type Description
obj *
prefix string
Source:
Returns:
Type
*

(static) unprefix(obj, prefix) → {*}

移除指定的前缀
Parameters:
Name Type Description
obj *
prefix string
Source:
Returns:
Type
*