Function joinpath

  • Join two paths

    Parameters

    • path: `/${string}`

      The first path.

    • suffix: string

      The second path.

    Returns EventPath

    The joined path.

    joinpath("/api", "/v1"); // "/api/v1"
    joinpath("/api/", "/v1"); // "/api/v1"
    joinpath("/api", "v1"); // "/apiv1"
    joinpath("/api/", "v1"); // "/api/v1"