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

11 lines (10 loc) 253 B
import invisible from './invisible'; /** * Test if a given DOM element is visible. * * @param elm - DOM element to test * @return Is the element visible for the user */ export default function visible(elm) { return !invisible(elm); }