You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
> See [Array.entries (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries)
513
513
@@ -797,30 +797,30 @@ includes("nonexistent")("To be, or not to be, that is the question.") //=> false
797
797
Returns the first index where the second string appears as a substring of the first. Optionally you can provide a starting index and the search will start there. If the first string is not found it returns -1
798
798
799
799
```js
800
-
indexOf("a")("abc"))//=> 0
801
-
indexOf("b")("abc"))//=> 1
802
-
indexOf("c")("abc"))//=> 2
803
-
indexOf("z")("abc"))//=> -1
800
+
indexOf("a")("abc") //=> 0
801
+
indexOf("b")("abc") //=> 1
802
+
indexOf("c")("abc") //=> 2
803
+
indexOf("z")("abc") //=> -1
804
804
```
805
805
> See [String.indexOf (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf)
Compares two strings taking the locale into account. The return value will be negative if the second string comes before the first. Positive if it comes later. And zero if they are equal. The additional, optional parameters allow a locale and other options to be specified.
0 commit comments