Function beforeLast

  • Get the string before the last instance of the found token.

    Type Parameters

    • T extends string

    • ST extends string

    Parameters

    • str: T
    • token: ST

      The string to search for.

    Returns BeforeLast<T, ST>

Generated using TypeDoc