PromoCursed/node_modules/core-js/internals/document-create-element.js
2024-08-20 23:25:37 +04:00

12 lines
367 B
JavaScript

'use strict';
var globalThis = require('../internals/global-this');
var isObject = require('../internals/is-object');
var document = globalThis.document;
// typeof document.createElement is 'object' in old IE
var EXISTS = isObject(document) && isObject(document.createElement);
module.exports = function (it) {
return EXISTS ? document.createElement(it) : {};
};