uce/site/doc/pages/str_starts_with.txt

19 lines
399 B
Plaintext

:sig
bool str_starts_with(String haystack, String needle)
:params
haystack : string to inspect
needle : prefix to compare against the start of `haystack`
return value : `true` when `haystack` begins with `needle`, otherwise `false`
:see
>string
:content
Checks whether `haystack` starts with `needle`.
Related:
- PHP: `str_starts_with()`
- JavaScript / Node.js: `String.prototype.startsWith()`