From b178daefe3dda0f6330641510b5047a0e80c30b6 Mon Sep 17 00:00:00 2001 From: adrianprzybyla Date: Wed, 15 Apr 2020 20:54:01 +0200 Subject: [PATCH] Fix --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 63a293b..4b8f9dc 100644 --- a/README.md +++ b/README.md @@ -120,7 +120,7 @@ console.log(muatatedArray) //['a','b','d','e'] //Non-mutating way const nonMuatatedArray = ['a','b','c','d','e']; -const newArray = nonMuatatedArray.filter((item'index) => !( index === 2 )); +const newArray = nonMuatatedArray.filter((item, index) => !( index === 2 )); console.log(newArray) //['a','b','d','e'] ```