match
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
Type Parameters
Section titled “Type Parameters”T
The type of the subject
Parameters
Section titled “Parameters”subject
Section titled “subject”T
An object or tuple to be tested
MatchTest<T>
An object containing one or more tests to be applied to the subject
Returns
Section titled “Returns”boolean
True if all tests pass, otherwise false