Function createOrigin

  • Combined the needed URL parts into a URL origin.

    Parameters

    • __namedParameters: Readonly<Pick<{
          fullPath: string;
          hash: string;
          host: string;
          hostname: string;
          href: string;
          origin: string;
          password: string;
          pathname: string;
          paths: string[];
          port: string;
          protocol: string;
          search: string;
          searchParams: Required<Record<string, string[]>>;
          username: string;
      }, "protocol" | "hostname" | "port">>

    Returns string