number: NumberPattern

P.number is a wildcard pattern, matching any number.

Read the documentation for P.number on GitHub

Example

match(value)
.with(P.number, () => 'will match on numbers')