"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
var CreDOM = /** @class */ (function () {
    function CreDOM() {
    }
    CreDOM.createDOM = function (type, className) {
        var ele = document.createElement(type);
        if (className) {
            if (typeof className === 'string') {
                ele.className = className;
            }
            else {
                var len = className.length;
                for (var i = 0; i < len; i++) {
                    ele.classList.add(className[i]);
                }
            }
        }
        return ele;
    };
    return CreDOM;
}());
exports.CreDOM = CreDOM;
