import { Node } from "@siteimprove/alfa-dom" ; import { Predicate } from "@siteimprove/alfa-predicate" ; export function isRoot ( options ? ) { return ( node ) => node . parent ( options ) . isNone ( ) ; }