Skip to content

Commit c597a2e

Browse files
authored
Merge pull request roeib#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

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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy