Skip to content
Subhajit Sahu edited this page Jan 31, 2021 · 15 revisions

Check if any value is true. 📦 😺 🏃 📼 🌔 📜 📰 📘

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


boolean.or([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 boolean = require("extra-boolean");

boolean.or(true, false);
// true

boolean.or(false, false);
// false

boolean.or(false, true, false, true);
// true

boolean.or(false, false, false, false);
// false


References

Clone this wiki locally