@tempots/std

stringStartsWithAny() function

Returns true if s starts with any of the values in values.

Signature:

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