Skip to main content
Version: Next

in

production

Filters for an element inside another element.

Examples:

--------------------
| outerEl |
| -------------- |
| | innerEl | |
| -------------- |
| |
--------------------

// Returns innerEl because innerEl is inside outerEl
...innerEl().in().outerEl()
// Returns nothing because innerEl is not inside outerEl
...outerEl().in().innerEl()