amis-rpc-design/node_modules/core-js/internals/document-create-element.js
2023-10-07 19:42:30 +08:00

12 lines
354 B
JavaScript

'use strict';
var global = require('../internals/global');
var isObject = require('../internals/is-object');
var document = global.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) : {};
};