Skip to main content
Version: v4.23

ends_with

Checks if a string ends with a specified substring.

ends_with(x:string, suffix:string) -> bool

Description

The ends_with function returns true if x ends with suffix and false otherwise.

Examples

Check if a string ends with a substring

from {x: "hello".ends_with("lo")}
{x: true}

See Also

starts_with