logical-gates
v0.1.1
Published
Logical Gates like AND, OR, NOR, XOR with bit-wise operation
Readme
Logic Gates
Implementation for logic gates in js
Installation
yarn add logical-gatesUsage
import { AND, OR, NAND, NOT, NOR } from 'logical-gates';Left bitwise operator
import { LAND, LOR, LXOR } from 'logical-gates';Example :
const result = LAND(5, 3);Explanation :
5 = 101
3 =11
// Left wise
3 = 110
Result
4