code: function checkProperties(obj) {
          for (var key in obj) {
                  if (obj[key] !== null && obj[key] != "")
                          return false;
          }
          return true;
  }
docs: Check if all properties of an object are null and return true if they are