matchAny

Description

Matches the first satisfied matcher

Example

matchAny(matchRegex(/[Hh]ey!/), matchPrefixes("hi"))

// Matching: "hey!"
// Matching: "hi"
// Matching: "Hey!"
// Not matching: "hello"

Usage

matchAny(matchers)

Parameters

matchers:
Matcher<any, any, any>[]