range
function range(
patternOrCombinator,
min,
max?): Combinator;
A Combinator to make the provided pattern's occurrence as in specified range.
i.e. {min,max}
Parameters
| Parameter | Type | Description |
|---|---|---|
patternOrCombinator | PatternCombinator | The pattern to apply |
min | number | The minimum occurrence |
max? | number | The Maximum occurrence, undefined means unlimited |
Returns
Combinator