Skip to content
This repository was archived by the owner on Oct 8, 2024. It is now read-only.

Commit bdb4883

Browse files
authored
Remove subsection on .indexed() (#258)
1 parent c907620 commit bdb4883

File tree

1 file changed

+0
-18
lines changed

1 file changed

+0
-18
lines changed

README.md

Lines changed: 0 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -133,24 +133,6 @@ result.next(); // {value: 4, done: false};
133133
result.next(); // {value: 5, done: false};
134134
```
135135

136-
### `.indexed()`
137-
138-
`.indexed` takes no arguments. It returns an iterator where each value produced by the underlying iterator is paired with a counter, starting at 0 and increasing by 1 with every element produced.
139-
140-
Returns an iterator of pairs.
141-
142-
#### Example
143-
144-
```JavaScript
145-
const abc = ["a", "b", "c"].values();
146-
147-
const result = abc
148-
.indexed();
149-
result.next(); // {value: [0, "a"], done: false};
150-
result.next(); // {value: [1, "b"], done: false};
151-
result.next(); // {value: [2, "c"], done: false};
152-
```
153-
154136
### `.flatMap(mapperFn)`
155137

156138
`.flatMap` takes a mapping function as an argument. It returns an iterator that produces all elements of the iterators produced by applying the mapping function to the elements produced by the underlying iterator.

0 commit comments

Comments
 (0)