take module
Type aliases
Functions
Type aliases
Take
Ƭ Take: function
Defined in index.ts:6
Take function (creates slice of a stream)
Type declaration:
▸ (iterable
: Iterable‹T›): IterableIterator‹T›
Parameters:
Name | Type | Description | |
---|---|---|---|
iterable |
Iterable‹T› | input stream |
Functions
take
▸ take‹T›(amount
: number): Take‹T›
Defined in index.ts:20
Function to created slice of a stream (substream) takes first N items from input stream
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
amount |
number | number of items to take |
Returns: Take‹T›
take function to slice stream
▸ take‹T›(amount
: number, iterable
: Iterable‹T›): IterableIterator‹T›
Defined in index.ts:29
Function to created slice of a stream (substream) takes first N items from input stream
Type parameters:
▪ T
Parameters:
Name | Type | Description | |
---|---|---|---|
amount |
number | number of items to take | |
iterable |
Iterable‹T› | input stream |
Returns: IterableIterator‹T›
output sliced stream