Skip to main content
Version: 3.9

tryAbsoluteURL

Callable

  • tryAbsoluteURL(href: string, baseUrl: string): string | undefined

  • Helper function used to validate URLs used when extracting URLs from a page


    Parameters

    • href: string
    • baseUrl: string

    Returns string | undefined