style: add annotation

This commit is contained in:
张传龙 2022-09-03 17:32:30 +08:00
parent f2e2fc6819
commit 661aed1a94

View File

@ -72,6 +72,7 @@ export function isNullOrWhitespace(val) {
return isNullOrUndef(val) || isWhitespace(val)
}
/** 空数组 | 空字符串 | 空对象 | 空Map | 空Set */
export function isEmpty(val) {
if (isArray(val) || isString(val)) {
return val.length === 0