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