Node-Red configuration
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

document-create-element.js 367B

1234567891011
  1. 'use strict';
  2. var globalThis = require('../internals/global-this');
  3. var isObject = require('../internals/is-object');
  4. var document = globalThis.document;
  5. // typeof document.createElement is 'object' in old IE
  6. var EXISTS = isObject(document) && isObject(document.createElement);
  7. module.exports = function (it) {
  8. return EXISTS ? document.createElement(it) : {};
  9. };