Skip to content

starts_with

Checks if a string starts with a specified substring.

starts_with(x:string, prefix:string) -> bool

The starts_with function returns true if x starts with prefix and false otherwise.

from {x: "hello".starts_with("he")}
{x: true}

ends_with