every module

Type aliases

Functions

Type aliases

Every

Ƭ Every: function

Defined in index.ts:17

Every function (returns true when every item fits predicate)

Type declaration:

▸ (iterable: Iterable‹T›): boolean

Parameters:

Name Type Description
iterable Iterable‹T› input stream

Predicate

Ƭ Predicate: function

Defined in index.ts:6

Predicate function

Type declaration:

▸ (item: T, index: number): boolean

Parameters:

Name Type Description
item T next item
index number item index in stream

Functions

every

everyT›(predicate: Predicate‹T›): Every‹T›

Defined in index.ts:30

Function to test whether all elements in the stream pass the test implemented in predicate

Type parameters:

T

Parameters:

Name Type Description
predicate Predicate‹T› predicate function

Returns: Every‹T›

every function

everyT›(predicate: Predicate‹T›, iterable: Iterable‹T›): boolean

Defined in index.ts:38

Function to test whether all elements in the array pass the test implemented in predicate

Type parameters:

T

Parameters:

Name Type Description
predicate Predicate‹T› predicate function
iterable Iterable‹T› input stream

Returns: boolean

true if every element in the stream pass the test

results matching ""

    No results matching ""