mocoolka-function
Version:
Function lib for function.
17 lines (16 loc) • 463 B
TypeScript
/**
* A function that returns the `!` of its argument. It will return `true` when
* passed false-y value, and `false` when passed a truth-y one.
*
* @since v0.1.0
* @param {*} a any value
* @return {Boolean} the logical inverse of passed argument.
* @example
*
* not(true); //=> false
* not(false); //=> true
* not(0); //=> true
* not(1); //=> false
*/
declare const not: <T>(a: T) => boolean;
export default not;