@tempots/std

containsAllText() function

containsAllText returns true if s contains all of the strings in tests

Signature:

containsAllText: (s: string, tests: string[]) => boolean

Parameters

Parameter

Type

Description

s

string

The string to search in.

tests

string[]

The strings to search for.

Returns: boolean

true if s contains all of the strings in tests, false otherwise.