校验:参数错误问题
This commit is contained in:
@@ -1711,7 +1711,7 @@ function checkBoolean(...params: boolean[]) {
|
|||||||
|
|
||||||
function checkBooleanIfExist(...params: boolean[]) {
|
function checkBooleanIfExist(...params: boolean[]) {
|
||||||
for(let param of params) {
|
for(let param of params) {
|
||||||
if(!isBoolean(param)) return false;
|
if(param != undefined && !isBoolean(param)) return false;
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user