Skip to content

Commit c597a2e

Browse files
authored
Merge pull request #8 from adrianprzybyla/patch-1
Fix typo
2 parents 9f0b20d + b178dae commit c597a2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ console.log(muatatedArray) //['a','b','d','e']
120120

121121
//Non-mutating way
122122
const nonMuatatedArray = ['a','b','c','d','e'];
123-
const newArray = nonMuatatedArray.filter((item'index) => !( index === 2 ));
123+
const newArray = nonMuatatedArray.filter((item, index) => !( index === 2 ));
124124
console.log(newArray) //['a','b','d','e']
125125
```
126126

0 commit comments

Comments
 (0)