Merge pull request #623 from ShandilyaPrasanna/patch-2
Update article.md
This commit is contained in:
commit
97528aa231
1 changed files with 2 additions and 2 deletions
|
@ -275,8 +275,8 @@ while ((pos = str.indexOf(target, pos + 1)) != -1) {
|
||||||
*/!*
|
*/!*
|
||||||
```
|
```
|
||||||
|
|
||||||
```smart header="`str.lastIndexOf(pos)`"
|
```smart header="`str.lastIndexOf(substr, position)`"
|
||||||
There is also a similar method [str.lastIndexOf(pos)](mdn:js/String/lastIndexOf) that searches from the end of a string to its beginning.
|
There is also a similar method [str.lastIndexOf(substr, position)](mdn:js/String/lastIndexOf) that searches from the end of a string to its beginning.
|
||||||
|
|
||||||
It would list the occurrences in the reverse order.
|
It would list the occurrences in the reverse order.
|
||||||
```
|
```
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue