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

and(input: Input): Output

Short way of using the AND gate.

Parameters

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

Returns

Output - The gate's output.

Example

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

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

console.log(res); // false

Clone this wiki locally