Skip to content

Commit 3f305f5

Browse files
authored
Merge pull request #3292 from a-v-gor/proofreading
fix typo, remove pleonasm
2 parents 1ce5644 + 8375316 commit 3f305f5

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

1-js/05-data-types/05-array-methods/article.md

+1-3
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ alert( arr.includes(1) ); // true
255255

256256
Please note that `indexOf` uses the strict equality `===` for comparison. So, if we look for `false`, it finds exactly `false` and not the zero.
257257

258-
If we want to check if `item` exists in the array, and don't need the exact index, then `arr.includes` is preferred.
258+
If we want to check if `item` exists in the array, and don't need the index, then `arr.includes` is preferred.
259259

260260
The method [arr.lastIndexOf](mdn:js/Array/lastIndexOf) is the same as `indexOf`, but looks for from right to left.
261261

@@ -338,8 +338,6 @@ alert(users.findIndex(user => user.name == 'John')); // 0
338338
alert(users.findLastIndex(user => user.name == 'John')); // 3
339339
```
340340
341-
342-
343341
### filter
344342
345343
The `find` method looks for a single (first) element that makes the function return `true`.

0 commit comments

Comments
 (0)