Skip to content

startsWith

startsWith(prefix): (s) => boolean

Defined in: Utils/Str.ts:56

Returns true when the string starts with the given prefix.

string

(s): boolean

string

boolean

pipe("hello world", Str.startsWith("hello")); // true
pipe("hello world", Str.startsWith("world")); // false