7 lines
288 B
JavaScript
7 lines
288 B
JavaScript
var isObject = require('./$.is-object')
|
|
, document = require('./$.global').document
|
|
// in old IE typeof document.createElement is 'object'
|
|
, is = isObject(document) && isObject(document.createElement);
|
|
module.exports = function(it){
|
|
return is ? document.createElement(it) : {};
|
|
}; |