code: function isNested(obj) {
      if (getType(obj)==='object') {
          for (let tag in obj) {
              if (tag != TEXT && !ATTRTAG.test(tag)) {
                  return true;
              }
          }
      }
  }
docs: test if object contains nested elements