Const
P.number is a wildcard pattern, matching any number.
P.number
Read the documentation for P.number on GitHub
match(value) .with(P.number, () => 'will match on numbers') Copy
match(value) .with(P.number, () => 'will match on numbers')
P.number
is a wildcard pattern, matching any number.Read the documentation for
P.number
on GitHub