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

12 lines (11 loc) 297 B
/** * Test if a given DOM element is technically hidden * - Not is DOM * - Collapsed * - display: none * - visibility: hidden. * * @param elm - DOM element to test * @return Is the element technically hidden or not */ export default function hidden(elm: HTMLElement): boolean;