notFn()
notFn<
T>(a): (b) =>boolean
Logical (Function Result) Not (Negation) (!a(b)).
Type Parameters
T
T
The type of the input value.
Parameters
a
(x) => unknown
The function to negate the return of.
Returns
(
b):boolean
Parameters
b
T
Returns
boolean
See
https://en.wikipedia.org/wiki/Negation
Remarks
pure function
Example
notFn(x => x & 1)(4);
// true