判断对象属性是否都为空
//判断当前对象属性是否都为空
const objectKeyIsEmpty = (obj) => {
let empty = null;
for (const key in obj) {
if (obj.hasOwnProperty(key)) {
if (obj[key] === null || obj[key] === '' || !obj[key]) {
empty = true;
} else {
empty = false;
break;
}
}
}
return empty;
}