aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/global_objects/string/includes
diff options
context:
space:
mode:
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects/string/includes')
-rw-r--r--files/fr/web/javascript/reference/global_objects/string/includes/index.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/string/includes/index.md b/files/fr/web/javascript/reference/global_objects/string/includes/index.md
index 55799ebce2..a49e0316db 100644
--- a/files/fr/web/javascript/reference/global_objects/string/includes/index.md
+++ b/files/fr/web/javascript/reference/global_objects/string/includes/index.md
@@ -70,9 +70,9 @@ if (!String.prototype.includes) {
String.prototype.includes = function(search, start) {
'use strict';
- if (search instanceof RegExp) {
-  throw TypeError('first argument must not be a RegExp');
-  }
+ if (search instanceof RegExp) {
+ throw TypeError('first argument must not be a RegExp');
+ }
if (start === undefined) { start = 0; }
return this.indexOf(search, start) !== -1;
};