style: add annotation
This commit is contained in:
parent
f2e2fc6819
commit
661aed1a94
@ -72,6 +72,7 @@ export function isNullOrWhitespace(val) {
|
|||||||
return isNullOrUndef(val) || isWhitespace(val)
|
return isNullOrUndef(val) || isWhitespace(val)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/** 空数组 | 空字符串 | 空对象 | 空Map | 空Set */
|
||||||
export function isEmpty(val) {
|
export function isEmpty(val) {
|
||||||
if (isArray(val) || isString(val)) {
|
if (isArray(val) || isString(val)) {
|
||||||
return val.length === 0
|
return val.length === 0
|
||||||
|
Loading…
x
Reference in New Issue
Block a user