Constructor
new SingletonIterator(item)
Creates a new SingletonIterator
.
Parameters:
Name | Type | Description |
---|---|---|
item |
object | The item that will be emitted. |
Extends
- module:asynciterator.AsyncIterator
An iterator that emits a single item.
Creates a new SingletonIterator
.
Name | Type | Description |
---|---|---|
item |
object | The item that will be emitted. |