Function before

  • Get the string up to and not including the given token.

    Type Parameters

    • T extends string

    • ST extends string

    Parameters

    • str: T
    • token: ST

      The string to search for.

    Returns Before<T, ST>

Generated using TypeDoc