A JavaScript function receives one argument that may be a DOM element or not. How ensure that argument is a DOM element and not another object?
With modern browsers I think it is something like
e instanceof Element
e instanceof Text // text node
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With