Function toURL

  • Converts various input formats to URL objects. Handles URL objects, domain strings, relative paths, and full URLs.

    Returns

    URL object or null if input is invalid

    Parameters

    • input: undefined | null | string | URL

      Input to convert to URL object

    Returns null | URL

Generated using TypeDoc