• Returns a section of a string.

    Parameters

    • Optionalstart: number

      The index to the beginning of the specified portion of stringObj.

    • Optionalend: number

      The index to the end of the specified portion of stringObj. The substring includes the characters up to, but not including, the character indicated by end. If this value is not specified, the substring continues to the end of stringObj.

    Returns string