Function strEndsWith

This method lets you determine whether or not a string ends with another string. This method is case-sensitive.

  • Parameters

    • value: string

      The value to be checked

    • searchString: string

      The characters to be searched for at the end of value string.

    • Optionallength: number

      If provided, it is used as the length of value. Defaults to value.length.

    Returns boolean