UNPKG

vanillajs-browser-helpers

Version:

Collection of convenience code snippets (helpers) that aims to make it a little easier to work with vanilla JS in the browser

8 lines (7 loc) 192 B
/** * Is the given DOM node inserted into the DOM * * @param elm - The element to check * @return Is it a DOM node in the DOM or not */ export default function inDOM(elm: Node): boolean;