• Returns the substring of s that starts at i and continues until j; i and j can be negative. If j is absent, then it is assumed to be equal to -1 (which is the same as the string length).

    Parameters

    • str: string
    • i: number
    • Optional j: number

    Returns string