Function setPathname

  • Set the given path to the URL's pathname.

    Parameters

    • url: URLInput

      The URL to modify.

    • path: string

      The path to apply to the URL's pathname.

    Returns URL

    A new URL object with the modified pathname.

Generated using TypeDoc