跳到主要内容

not

TS JS Deno

Returns the logical inverse of the given value.

Use the logical not (!) operator to return the inverse of the given value.

typescript
const not = (a: any) => !a;
typescript
not(true); // false
not(false); // true