@lang:str.includes
Check whether a string contains a substring.
Returns: bool
Syntax
Section titled “Syntax”@lang:str.includes(value item)Arguments
Section titled “Arguments”| Name | Type | Description |
|---|---|---|
value | string | Input value |
item | string | Substring to search for |
See Also
Section titled “See Also”- @str.replace — find and replace
- @includes — array membership check