string.string.starts_with
Declaration
lua
string.starts_with(text, prefix)
Description
Check if string starts with prefix.
Parameters
| Name | Type | Required | Default | Description |
|---|---|---|---|---|
text | string | Required | — | |
prefix | string | Required | — |
Return Values
| Type | Description |
|---|---|
| boolean |
Example
lua
("hello"):starts_with("he")