anyOf
Tries to match all parsers
and returns the first successful one.
Available since: v1.0.0-alpha.1
Type declaration
Example
In this example we are going to parse either the string "Hello"
or "World"
.
The result
of the parser above will be: