String.includes
includes — Check if the string includes another string.
Description
String.includes(string string)
Parameters
Name | Description | Type | Default | Optional |
---|---|---|---|---|
string | string | No |
Return values
boolean primitive.
Changelog
Version | Description |
---|---|
ES 6 | Introduced. |
Examples
Example #1 – includes example