Hello, my name is JP.
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.