starts_with(s: utf8, prefix: utf8) → bool

Category: [strings](builtinsstrings)_

Whether a string begins with a prefix.

ParameterTypeDescriptionRemarks
sutf8The string to test.
prefixutf8The prefix to look for.
returnsbooltrue if the string starts with the prefix.
wcl
starts_with("hello", "he")   // does it begin with this prefix? → true