Skip to content
Jaime Redondo edited this page Jan 3, 2021 · 2 revisions

not(input: Input): Output

Short way of using the NOT gate.

Parameters

Name Type Default Description
input Input none The gate's input.

Returns

Output - The gate's output.

Example

const { not } = require("@jaimermxd/logic-gates");

var res = not([false, true]);

console.log(res); // [ true, false ]

Clone this wiki locally