isDocument.js 126 Bytes
Newer Older
Sangjune Bae's avatar
Sangjune Bae committed
1
2
3
export default function isDocument(element) {
  return 'nodeType' in element && element.nodeType === document.DOCUMENT_NODE;
}