Skip to content

Commit b178dae

Browse files
authored
Fix
1 parent 9f0b20d commit b178dae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

README.md

Lines changed: 1 addition & 1 deletion
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)