package.internals.document-create-element.js Maven / Gradle / Ivy
The newest version!
'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) : {};
};
© 2015 - 2024 Weber Informatics LLC | Privacy Policy