Skip to content

startsWith

startsWith(prefix): (s) => boolean

Defined in: Data/Str.ts:80

Returns true when the string starts with the given prefix.

string

(s) => boolean

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