关于javascript:判断对象所有属性是否为空值

3次阅读

共计 66 个字符,预计需要花费 1 分钟才能阅读完成。

let result = Object.values(data).every((item) => item == null || item == "");
正文完
 0