wallet-core/node_modules/core-js/modules/$.dom-create.js
2017-05-03 15:35:00 +02:00

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) : {};
};