• Checks if string ends with the given target string.

    Parameters

    • Optionalstring: string

      The string to search.

    • Optionaltarget: string

      The string to search for.

    • Optionalposition: number

      The position to search from.

    Returns boolean

    Returns true if string ends with target, else false.