not

Returns the complement of its argument.

Import

import { not } from '@fullstacksjs/toolbox';

Signature

function not(b: any): boolean {}

Examples

not(true)  // false
not(false) // true
not(0)     // true
not(1)     // false