Skip to content

match

Algorand TypeScript


Algorand TypeScript / index / match

match<T>(subject, test): boolean

Defined in: util.ts:111

Applies all tests in test against subject and returns a boolean indicating if they all pass

T

The type of the subject

T

An object or tuple to be tested

MatchTest<T>

An object containing one or more tests to be applied to the subject

boolean

True if all tests pass, otherwise false