diff options
-rw-r--r-- | files/fr/web/javascript/reference/global_objects/array/reduce/index.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/files/fr/web/javascript/reference/global_objects/array/reduce/index.md b/files/fr/web/javascript/reference/global_objects/array/reduce/index.md index 183efdeb71..b1dae807ac 100644 --- a/files/fr/web/javascript/reference/global_objects/array/reduce/index.md +++ b/files/fr/web/javascript/reference/global_objects/array/reduce/index.md @@ -366,7 +366,7 @@ console.table(tableauSansDoublon); // [1, 2, 3, 4, 5, 6] ```js var tableauAvecDoublons = [1, 2, 3, 1, 4, 5, 4, 6]; -var tableauSansDoublon = tableauAvecDoublon.reduce(function (acc, valCourante) { +var tableauSansDoublon = tableauAvecDoublons.reduce(function (acc, valCourante) { if(acc.indexOf(valCourante) === -1) { acc.push(valCourante); } |