@fingerprintjs/url-matcher
    Preparing search index...

    Function findMatchingRoute

    • Matches a list of routes against a given URL to determine if a match is found.

      Type Parameters

      • Metadata

      Parameters

      • url: URL

        The URL to be matched against the provided routes.

      • routes: Route<Metadata>[]

        Array of route objects that define the matching criteria such as protocol, hostname, and path.

      Returns undefined | Route<Metadata>

      Returns matched route, or undefined if no match is found.