import { Element } from "@siteimprove/alfa-dom" ; import { Predicate } from "@siteimprove/alfa-predicate" ; export function hasId ( predicate = ( ) => true ) { return ( element ) => element . id . filter ( predicate ) . isSome ( ) ; }