You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
11 lines
427 B
11 lines
427 B
2 years ago
|
# `string.includes(position = 0)` _(ext/string\_/includes)_
|
||
|
|
||
|
`includes` method for strings. Resolve native [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) if implemented, otherwise fallback to shim implementation.
|
||
|
|
||
|
```javascript
|
||
|
const includes = require("ext/string_/includes");
|
||
|
|
||
|
includes.call("razdwa", "raz"); // true
|
||
|
includes.call("razdwa", "trzy"); // false
|
||
|
```
|