Déterminer si tous les attributs d'un objet JavaScript sont nuls ou la chaîne vide

Quelle est la façon la plus élégante pour déterminer si tous les attributs d'un objet javascript sont null ou une chaîne vide? Il doit travailler pour un nombre arbitraire d'attributs.

{'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

source d'informationauteur J-bob