Skip to content
Subhajit Sahu edited this page Jul 19, 2022 · 17 revisions

Check if all booleans are true.

Similar: and, nand.
Similar: and, or, not, xor.


and([a], [b], [c], [d], [e], [f], [g], [h])
// a: 1st boolean
// b: 2nd boolean
// c: 3rd boolean
// d: 4th boolean
// e: 5th boolean
// f: 6th boolean
// g: 7th boolean
// h: 8th boolean
const xboolean = require('extra-boolean');

xboolean.and(true, true);
// → true

xboolean.and(true, false);
// → false

xboolean.and(true, true, true, true);
// → true

xboolean.and(true, false, true, true);
// → false


References

Clone this wiki locally