StreamWalker
Stream walker
Constructor Summary
Public Constructor | ||
public |
Creates an instance of stream walker. |
Member Summary
Protected Members | ||
protected |
iterable: AsyncIterableIterator iterable |
Method Summary
Public Methods | ||
public |
async * [Symbol.asyncIterator]() standard async iterable function |
|
public |
The every() method tests whether all elements in the iterator pass the test implemented by the provided function |
|
public |
filter(fn: Function, thisArg: Function): StreamWalker The filter() method creates a new iterator with all elements that pass the test implemented by the provided function |
|
public |
The forEach() method executes a provided function once for each iterator element |
|
public |
map(fn: Function, thisArg: Function): StreamWalker The map() method creates a new iterator with the results of calling a provided function on every element in the calling iterator |
|
public |
The reduce() method applies a function against an accumulator and each element in the iterator (from left to right) to reduce it to a single value |
|
public |
Converts an iterator to an array. |
Public Constructors
Protected Members
Public Methods
public async every(fn: Function, thisArg: Function): Promise source
The every() method tests whether all elements in the iterator pass the test implemented by the provided function
public filter(fn: Function, thisArg: Function): StreamWalker source
The filter() method creates a new iterator with all elements that pass the test implemented by the provided function
public async forEach(fn: Function, thisArg: Function, args: ...*): Promise source
The forEach() method executes a provided function once for each iterator element
public map(fn: Function, thisArg: Function): StreamWalker source
The map() method creates a new iterator with the results of calling a provided function on every element in the calling iterator