DLiteScript

strings.startsWith

Checks if a string starts with a specific prefix.

Examples

1
2
printf("%t\n", strings.startsWith("hello world", "hello")) // true
printf("%t\n", strings.startsWith("hello world", "world")) // false