Predicate
not
import { not } from 'funkcia/predicate';
const isString = (value: unknown) => typeof value === 'string';
const isNotString = not(isString);Predicate<A>
import { Predicate } from 'funkcia/predicate';
const isPositive: Predicate.Predicate<number> = (n) => n > 0;Guard<A, B extends A>
import { Predicate } from 'funkcia/predicate';
const isString: Predicate.Guard<unknown, string> = (value) =>
typeof value === 'string';Guarded<Guard>
Unguarded<A, B extends A>
Last updated
Was this helpful?