Function substringBeforeLast

  • Returns section of the string before occurrence of the last specified delimiter; in case the delimiter does not occur returns the whole string

    Parameters

    • value: string

      Value

    • delimiter: string

      Delimiter string passed ot split

    Returns string