import { Node } from "@siteimprove/alfa-dom" ; import { Predicate } from "@siteimprove/alfa-predicate" ; export function hasDescendant ( predicate , options = { } ) { return ( node ) => node . descendants ( options ) . some ( predicate ) ; }