UNPKG

algebra

Version:

means completeness and balancing, from the Arabic word الجبر

13 lines (11 loc) 266 B
const Boole = { zero: false, one: true, contains: (a) => (typeof a === 'boolean'), addition: (a, b) => (a || b), equality: (a, b) => (a === b), negation: (a) => (a), multiplication: (a, b) => (a && b), inversion: (a) => (a) } module.exports = Boole