iselement
v1.1.4
Published
Utility function that returns `true` if referenced object is DOM element.
Downloads
241,469
Readme
isElement
Utility function that returns true
if referenced object is DOM element.
Most similar functions just checks, if object is instance of HTMLElement
. That does not always work, because it exotic elements like SVG polygons.
How to use
import isElement from 'iselement';
isElement(my_object); // --> true/false
Documentation
isElement
Returns true
if provided input is Element.
Parameters
input
[Any]
Returns boolean