match
@algorandfoundation/algorand-typescript
@algorandfoundation/algorand-typescript / index / match
Function: match()
match<
T
>(subject
,test
):boolean
Defined in: packages/algo-ts/src/util.ts:88
Applies all tests in test
against subject
and returns a boolean indicating if they all pass
Type Parameters
• T
The type of the subject
Parameters
subject
T
An object or tuple to be tested
test
MatchTest
<T
>
An object containing one or more tests to be applied to the subject
Returns
boolean
True if all tests pass, otherwise false