Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 8ba0e91

Browse files
Merge pull request #39 from prajwalpoojary/patch-2
update explanation for lastIndexOf()
2 parents fe84431 + 6ac63eb commit 8ba0e91

File tree

1 file changed

+2
-2
lines changed
  • 06_Arrays/01_Array Methods/07_Methods for Searching

1 file changed

+2
-2
lines changed

‎06_Arrays/01_Array Methods/07_Methods for Searching/00_.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ There are many methods that can help you find specific elements in an array. The
55
- returns `-1` is the element is not found
66

77
`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
99
- returns `-1` is the element is not found
1010

1111
`arrayname.find(function)`
@@ -14,4 +14,4 @@ There are many methods that can help you find specific elements in an array. The
1414

1515
`arrayname.findIndex(function)`
1616
- 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`

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /