Skip to content

Latest commit

 

History

History
76 lines (43 loc) · 1.6 KB

README.md

File metadata and controls

76 lines (43 loc) · 1.6 KB

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

takeT›(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

takeT›(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