Last change
on this file since 6a80231 was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago |
initial commit
|
-
Property mode
set to
100644
|
File size:
340 bytes
|
Line | |
---|
1 | var global = require('../internals/global');
|
---|
2 | var isObject = require('../internals/is-object');
|
---|
3 |
|
---|
4 | var document = global.document;
|
---|
5 | // typeof document.createElement is 'object' in old IE
|
---|
6 | var EXISTS = isObject(document) && isObject(document.createElement);
|
---|
7 |
|
---|
8 | module.exports = function (it) {
|
---|
9 | return EXISTS ? document.createElement(it) : {};
|
---|
10 | };
|
---|
Note:
See
TracBrowser
for help on using the repository browser.