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

3 lines
126 B
JavaScript
Raw Permalink Normal View History

2022-04-25 02:47:15 +00:00
export default function isDocument(element) {
return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;
}