P.instanceOf(SomeClass) is a pattern matching instances of a given class.
P.instanceOf(SomeClass)
Read the documentation for P.instanceOf on GitHub
P.instanceOf
.with(P.instanceOf(SomeClass), () => 'will match on SomeClass instances') Copy
.with(P.instanceOf(SomeClass), () => 'will match on SomeClass instances')
P.instanceOf(SomeClass)
is a pattern matching instances of a given class.Read the documentation for
P.instanceOf
on GitHub