"use strict";
const hasClass = require("./hasClass.js");
function addClass(element, className) {
  if (element.classList)
    element.classList.add(className);
  else if (!hasClass(element, className))
    if (typeof element.className === "string")
      element.className = element.className + " " + className;
    else
      element.setAttribute("class", (element.className && element.className.baseVal || "") + " " + className);
}
module.exports = addClass;
//# sourceMappingURL=addClass.js.map
