Check if the first element is inside the second element.
JavaScript
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.
Source
.gitignore
README.md
inside.png
package.yml

README.md

Element.inside

Check if the first element is inside the second element.

Screenshot

How to use

The code is self explanatory. It will return true if the first element is inside the second element.

firstElement.inside(secondElement);