File tree Expand file tree Collapse file tree 1 file changed +1
-3
lines changed
1-js/05-data-types/05-array-methods Expand file tree Collapse file tree 1 file changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -255,7 +255,7 @@ alert( arr.includes(1) ); // true
255255
256256Please 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
260260The 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
338338alert(users.findLastIndex(user => user.name == 'John')); // 3
339339```
340340
341-
342-
343341### filter
344342
345343The `find` method looks for a single (first) element that makes the function return `true`.
You can’t perform that action at this time.
0 commit comments