Function upOneLevel

  • Removes the last segment of the url.

    Parameters

    • url: string
      const url = upOneLevel('/first/second');

      console.log(url); // '/first'

    Returns string

MMNEPVFCICPMFPCPTTAAATR