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

or(input: Input): Output

Short way of using the OR gate.

Parameters

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

Returns

Output - The gate's output.

Example

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

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

console.log(res); // true

Clone this wiki locally