|
Last change
on this file was 9af201e, checked in by MBK <marija.karapandzova@…>, 12 days ago |
|
Fix frontend appearance
|
-
Property mode
set to
100644
|
|
File size:
367 bytes
|
| Line | |
|---|
| 1 | 'use strict';
|
|---|
| 2 | var globalThis = require('../internals/global-this');
|
|---|
| 3 | var isObject = require('../internals/is-object');
|
|---|
| 4 |
|
|---|
| 5 | var document = globalThis.document;
|
|---|
| 6 | // typeof document.createElement is 'object' in old IE
|
|---|
| 7 | var EXISTS = isObject(document) && isObject(document.createElement);
|
|---|
| 8 |
|
|---|
| 9 | module.exports = function (it) {
|
|---|
| 10 | return EXISTS ? document.createElement(it) : {};
|
|---|
| 11 | };
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.