@tempots/std

textEndsWithCaseInsensitive() function

Checks if a string ends with another string in a case-insensitive manner.

Signature:

textEndsWithCaseInsensitive: (s: string, end: string) => boolean

Parameters

Parameter

Type

Description

s

string

The string to check.

end

string

The string to check if it is the ending of s.

Returns: boolean

true if s ends with end (case-insensitive), otherwise false.