perfrunner-reporters
Version:
Home of the perfrunner reporters
15 lines (14 loc) • 529 B
JavaScript
Object.defineProperty(exports, "__esModule", { value: true });
exports.createElement = void 0;
function createElement(key, options) {
const element = document.createElement(key);
if (options === null || options === void 0 ? void 0 : options.className) {
element.className = options.className;
}
if (options === null || options === void 0 ? void 0 : options.child) {
element.appendChild(options.child);
}
return element;
}
exports.createElement = createElement;
;