aboutsummaryrefslogtreecommitdiff
path: root/files/fr/web/javascript/reference/global_objects
diff options
context:
space:
mode:
authortheofalg <40175779+theofalg@users.noreply.github.com>2022-01-29 09:18:04 +0100
committerGitHub <noreply@github.com>2022-01-29 09:18:04 +0100
commit8753cab034fdcf2dd447be8ae72714097177af6e (patch)
tree6e4840673ad1f9b48691f980a6a1f25b2c3d1604 /files/fr/web/javascript/reference/global_objects
parentd9c78eaf0a95af5981a95bf3a0caf1828a6d6190 (diff)
downloadtranslated-content-8753cab034fdcf2dd447be8ae72714097177af6e.tar.gz
translated-content-8753cab034fdcf2dd447be8ae72714097177af6e.tar.bz2
translated-content-8753cab034fdcf2dd447be8ae72714097177af6e.zip
Typofix (#3869)
Correction orthographique d'une variable
Diffstat (limited to 'files/fr/web/javascript/reference/global_objects')
-rw-r--r--files/fr/web/javascript/reference/global_objects/array/reduce/index.md2
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);
}