Added npm dependency
This commit is contained in:
1 parent
888dd9af1e
commit
8dfc6caa7e
21061 files changed
+3885381
No files matched your search
+10
@@ -0,0 +1,10 @@
|
||||
# `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
|
||||
```
|
||||
Reference in new issue
Block a user