Skip to content

Commit

Permalink
fix comma location in method signature to conform to the standard (#2…
Browse files Browse the repository at this point in the history
…2057)

* fix comma location in method signature to conform to the standard

* [ru] update "Syntax" section in 'Web/JavaScript/Reference/Global_Objects/String/indexOf'

---------

Co-authored-by: Leonid Vinogradov <[email protected]>
  • Loading branch information
alshenetsky and leon-win authored Jun 28, 2024
1 parent b434fa9 commit 81e3741
Showing 1 changed file with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,13 @@ slug: Web/JavaScript/Reference/Global_Objects/String/indexOf

Метод **`indexOf()`** возвращает индекс первого вхождения указанного значения в строковый объект {{jsxref("Global_Objects/String", "String")}}, на котором он был вызван, начиная с индекса `fromIndex`. Возвращает -1, если значение не найдено.

{{EmbedInteractiveExample("pages/js/string-indexof.html", "taller")}}

## Синтаксис

```
str.indexOf(searchValue, [fromIndex])
```js-nolint
indexOf(searchString)
indexOf(searchString, position)
```

### Параметры
Expand Down

0 comments on commit 81e3741

Please sign in to comment.