@tempots/std

textContainsCaseInsensitive() function

textContainsCaseInsensitive returns true if s contains one or more occurrences of test regardless of the text case.

Signature:

textContainsCaseInsensitive: (s: string, test: string) => boolean

Parameters

Parameter

Type

Description

s

string

The string to search in.

test

string

The string to search for.

Returns: boolean

true if s contains test (case-insensitive), false otherwise.