code: function hasClass(elm, name) {
          var re = classRE(name);
          return elm.className && elm.className.match(re);
      }
docs: /*
  Determine whether any of the matched elements are assigned the given class.
  @param {HTMLElement} elm
  @param {String} name