Skip to content

Latest commit

 

History

History
26 lines (15 loc) · 868 Bytes

polyethylene.polyasynciterable.take.md

File metadata and controls

26 lines (15 loc) · 868 Bytes

Home > polyethylene > PolyAsyncIterable > take

PolyAsyncIterable.take() method

Return a new iteration that iterates only over the first num elements. If there were less than than num elements in the iteration, all elements are yielded with no additions.

Signature:

take(num: number): PolyAsyncIterable<T>;

Parameters

Parameter Type Description
num number The number of elements to yield

Returns:

PolyAsyncIterable<T>

a new PolyAsyncIterable that yields the first num elements elements of this