mirror of https://github.com/jkjoy/sunpeiwen.git
8 lines
296 B
JavaScript
8 lines
296 B
JavaScript
var isObject = require('./_is-object');
|
|
var document = require('./_global').document;
|
|
// typeof document.createElement is 'object' in old IE
|
|
var is = isObject(document) && isObject(document.createElement);
|
|
module.exports = function (it) {
|
|
return is ? document.createElement(it) : {};
|
|
};
|