From 8a34315dd5f12509d61883f28c056d498209a294 Mon Sep 17 00:00:00 2001 From: Alister Norris Date: Fri, 20 Oct 2017 18:33:26 +0100 Subject: [PATCH] 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 --- es6.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/es6.md b/es6.md index a06547297..3acc0eccc 100644 --- a/es6.md +++ b/es6.md @@ -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") ```