Skip to main content
Version: Next

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