From 8753cab034fdcf2dd447be8ae72714097177af6e Mon Sep 17 00:00:00 2001 From: theofalg <40175779+theofalg@users.noreply.github.com> Date: Sat, 29 Jan 2022 09:18:04 +0100 Subject: Typofix (#3869) Correction orthographique d'une variable --- files/fr/web/javascript/reference/global_objects/array/reduce/index.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'files/fr/web/javascript/reference/global_objects') 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); } -- cgit v1.2.3-54-g00ecf