Contains not a function, update to includes

Not aware of String.prototype.contains becoming an ES standard, however, String.prototype.includes is functionally equivalent. 

See: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes
This commit is contained in:
Alister Norris 2017-10-20 18:33:26 +01:00 committed by GitHub
parent ff8f02c2cb
commit 8a34315dd5
1 changed files with 1 additions and 1 deletions

2
es6.md
View File

@ -67,7 +67,7 @@ See: [Binary and octal literals](http://babeljs.io/docs/learn-es2015/#binary-and
```js
"hello".repeat(3)
"hello".contains("ll")
"hello".includes("ll")
"\u1E9B\u0323".normalize("NFC")
```