code: function (uuid) {
  
      var check = UUID.check(uuid);
      if (!check) {
          throw "not a UUID";
      }
  
      this.version = check.version;
      this.variant = check.variant;
  
      this[check.format] = uuid;
  }
docs: UUID class