Returns the logical inverse of the given value.

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

代码片段

const not = a => !a;

使用样例

not(true); // false
not(false); // true