From 661aed1a94dc099fd0ac80649727d8e2371dc79b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E4=BC=A0=E9=BE=99?= Date: Sat, 3 Sep 2022 17:32:30 +0800 Subject: [PATCH] style: add annotation --- src/utils/is.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/utils/is.js b/src/utils/is.js index 876c99f..5651c79 100644 --- a/src/utils/is.js +++ b/src/utils/is.js @@ -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