iterator
Source: lib/iterator.js (pure JS) — default export: Iterator
A base class providing the synchronous iterator protocol and helper methods.
Exports
| Export | Kind | Description |
|---|---|---|
Iterator | class | Iterator base (next, [Symbol.iterator], helpers). (default export) |
IteratorPrototype | const | Shortcut for Iterator.prototype. |
Export list
Generated by utilities/doc-api.js from the iterator dump of utilities/api-surface.sh: 52 members. Edit the text above this block, not the block.
Functions: IteratorPrototype[Symbol.iterator](), IteratorPrototype[Symbol.toStringTag]()
Iterator
class, constructible
- static methods:
from() - methods:
drop(),dropWhile(),every(),filter(),find(),flatMap(),forEach(),map(),reduce(),some(),take(),takeWhile(),toArray(),[Symbol.iterator]() - properties:
[Symbol.toStringTag]
IteratorPrototype
object
- static methods:
drop(),dropWhile(),every(),filter(),find(),flatMap(),forEach(),map(),reduce(),some(),take(),takeWhile(),toArray()
default
class, constructible
- static methods:
from() - methods:
drop(),dropWhile(),every(),filter(),find(),flatMap(),forEach(),map(),reduce(),some(),take(),takeWhile(),toArray(),[Symbol.iterator]() - properties:
[Symbol.toStringTag]