@tempots/std

stringContains() function

textContains returns true if s contains one or more occurrences of test.

Signature:

stringContains: (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, false otherwise.