Files
simpleidp/wwwroot/lib/popper.js/esm/dom-utils/instanceOf.min.js
2025-08-19 16:58:51 +02:00

1 line
392 B
JavaScript

import getWindow from"./getWindow.js";function isElement(n){return n instanceof getWindow(n).Element||n instanceof Element}function isHTMLElement(n){return n instanceof getWindow(n).HTMLElement||n instanceof HTMLElement}function isShadowRoot(n){return"undefined"!=typeof ShadowRoot&&(n instanceof getWindow(n).ShadowRoot||n instanceof ShadowRoot)}export{isElement,isHTMLElement,isShadowRoot};