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

xor(input: Input): Output

Short way of using the XOR gate.

Parameters

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

Returns

Output - The gate's output.

Example

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

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

console.log(res); // true

Clone this wiki locally