GoScrobble/web/node_modules/dom-helpers/cjs/isDocument.js

10 lines
222 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
"use strict";
exports.__esModule = true;
exports.default = isDocument;
function isDocument(element) {
return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;
}
module.exports = exports["default"];