Skip to content

Commit 7ccf421

Browse files
authored
Align the format of the sentence with the others (#1074)
Align the format of the sentence with the others
2 parents 4a48dee + 1aade86 commit 7ccf421

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

1-js/05-data-types/05-array-methods/article.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ These are methods to search for something in an array.
238238

239239
The methods [arr.indexOf](mdn:js/Array/indexOf), [arr.lastIndexOf](mdn:js/Array/lastIndexOf) and [arr.includes](mdn:js/Array/includes) have the same syntax and do essentially the same as their string counterparts, but operate on items instead of characters:
240240

241-
- `arr.indexOf(item, from)` looks for `item` starting from index `from`, and returns the index where it was found, otherwise `-1`.
241+
- `arr.indexOf(item, from)` -- looks for `item` starting from index `from`, and returns the index where it was found, otherwise `-1`.
242242
- `arr.lastIndexOf(item, from)` -- same, but looks for from right to left.
243243
- `arr.includes(item, from)` -- looks for `item` starting from index `from`, returns `true` if found.
244244

0 commit comments

Comments
 (0)