@tempots/std

textStartsWithAnyCaseInsensitive() function

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

Signature:

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

Parameters

Parameter

Type

Description

s

string

The string to compare.

values

string[]

The values to compare with the start of s.

Returns: boolean

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