优化代码

This commit is contained in:
java110 2021-01-19 11:27:14 +08:00
parent 3dd3d38a40
commit b6336bf8bc

View File

@ -37,3 +37,15 @@ export function isEmpty(_value) {
return true return true
} }
} }
export function isNull(_value) {
if (typeof _value == "undefined" || _value == null || _value == "") {
return true;
} else {
return false;
}
}
export function isNotNull(_value) {
return !isNull(_value);
}