/function/not
stdInverts the given function result.
Type signature
(
f: (...xs: any[]) => any
) => (...args: any[]) => boolean
Examples
not(x > 10)(15);
// ⇒ true
Try in REPL
Questions
- How to invert a boolean function?
(
f: (...xs: any[]) => any
) => (...args: any[]) => boolean
not(x > 10)(15);
// ⇒ true
Try in REPL