2.0.1 • Published 4 years ago
is-interactive-element v2.0.1
isInteractiveElement
isInteractiveElement checks if a DOM element is an interactive element or not.
Installation
isInteractiveElement can be installed using npm:
$ npm install [--save] is-interactive-element
Example usage
if (isInteractiveElement(document.createElement('button'))) {
// do something you should only do with interactive elements
}