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 9ba7fd9

Browse files
Merge pull request #3 from lulalachen/patch-1
Fix typo
2 parents 2e232f2 + 8a24dc6 commit 9ba7fd9

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

‎README.md

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,7 @@ Return an iterator over key, value pairs from the array.
507507

508508
```js
509509
const iterator = entries([1, 2, 3, 4, 5])
510-
iterator.next()) // => { value: [0, 1], done: false }
510+
iterator.next() // => { value: [0, 1], done: false }
511511
```
512512
> See [Array.entries (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/entries)
513513
@@ -797,30 +797,30 @@ includes("nonexistent")("To be, or not to be, that is the question.") //=> false
797797
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
798798

799799
```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
804804
```
805805
> See [String.indexOf (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/indexOf)
806806
### lastIndexOf :: `String -> String -> Int` | `(String, Int) -> String -> Int`
807807
Works like index of but starting at the end and working forward.
808808

809809
```js
810-
lastIndexOf("a")("abc")) //=> 0
811-
lastIndexOf("b")("abc")) //=> 1
812-
lastIndexOf("c")("abc")) //=> 2
813-
lastIndexOf("z")("abc")) //=> -1
810+
lastIndexOf("a")("abc") //=> 0
811+
lastIndexOf("b")("abc") //=> 1
812+
lastIndexOf("c")("abc") //=> 2
813+
lastIndexOf("z")("abc") //=> -1
814814
```
815815
> See [String.lastIndexOf (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/lastIndexOf)
816816
### localeCompare :: `String -> String -> Int` | `(String, String) -> String -> Int` | `(String, String, Object) -> String -> Int`
817817
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.
818818

819819
```js
820-
localeCompare("b")("a")) //=> <0
821-
localeCompare("a")("b")) //=> >0
822-
localeCompare("a")("a")) //=> 0
823-
localeCompare('a', 'de', { sensitivity: 'base' })('ä')) //=> 0
820+
localeCompare("b")("a") //=> <0
821+
localeCompare("a")("b") //=> >0
822+
localeCompare("a")("a") //=> 0
823+
localeCompare('a', 'de', { sensitivity: 'base' })('ä') //=> 0
824824
```
825825
> See [String.localeCompare (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/localeCompare)
826826
### match :: `Regexp -> String -> [String]`
@@ -843,7 +843,7 @@ normalize('NFKC')('\u1E9B\u0323') //=> '\u1E69'
843843
Returns string comprised of the given number of repeats of the given string.
844844

845845
```js
846-
repeat(2)('abc')) //=> 'abcabc'
846+
repeat(2)('abc') //=> 'abcabc'
847847
```
848848
> See [String.repeat (MDN)](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/repeat)
849849
### replace :: `(Regexp, String) -> String -> String`

0 commit comments

Comments
(0)

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