什么是最优雅的方法来确定一个JavaScript对象中的所有属性是否为null或空字符串?它应该适用于任意数量的属性。
{'a':null, 'b':''} //should return true for this object
{'a':1, 'b':''} //should return false for this object
{'a':0, 'b':1} //should return false
{'a':'', 'b':''} //should return true