param element param predicate returns export function containedByInclusive ( element , predicate ) { let el = element ; while ( el ) { if ( predicate ( el ) ) { return true ; } el = el . parentElement ; } return false ; }