@tempots/std

textEndsWithAnyCaseInsensitive() function

Compares a string s with many values and see if one of them matches its end ignoring their case.

Signature:

textEndsWithAnyCaseInsensitive: (s: string, values: string[]) => boolean

Parameters

Parameter

Type

Description

s

string

The string to compare.

values

string[]

The values to compare with the end of s.

Returns: boolean

true if s ends with any of the values in values (case-insensitive), false otherwise.