Skip to content

startsWith

startsWith(target, source)

Checks if target string starts with source string.

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