boolean: BooleanPattern

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

Read the documentation for P.boolean on GitHub

Example

.with(P.boolean, () => 'will match on booleans')