File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
06_Arrays/01_Array Methods/07_Methods for Searching Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ There are many methods that can help you find specific elements in an array. The
5
5
- returns ` -1 ` is the element is not found
6
6
7
7
` arrayname.lastIndexOf(element, [leftOf]) `
8
- - returns the index of the first match in the array
8
+ - returns the index of the last match in the array
9
9
- returns ` -1 ` is the element is not found
10
10
11
11
` arrayname.find(function) `
@@ -14,4 +14,4 @@ There are many methods that can help you find specific elements in an array. The
14
14
15
15
` arrayname.findIndex(function) `
16
16
- returns the index of the leftmost element in the array, that meets the criteria in the function
17
- - if no such element is found, returns ` -1 `
17
+ - if no such element is found, returns ` -1 `
You can’t perform that action at this time.
0 commit comments