Hello, my name is JP.
elementContains One Liner in Javascript
I don't know about you, but I enjoy writing utility functions. Even with libraries like LoDash and Underscore there is still value in writing your own utilities.
Below you'll find a simple use example with the method elementContains().
Hope you enjoy.