校验:参数错误问题

This commit is contained in:
luying
2022-08-12 17:28:38 +08:00
parent 07f286af05
commit 0228c12c6b

View File

@@ -1711,7 +1711,7 @@ function checkBoolean(...params: boolean[]) {
function checkBooleanIfExist(...params: boolean[]) {
for(let param of params) {
if(!isBoolean(param)) return false;
if(param != undefined && !isBoolean(param)) return false;
}
return true;
}