@extra-boolean/or

Checks if any value is true. 📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.

Usage no npm install needed!

<script type="module">
  import extraBooleanOr from 'https://cdn.skypack.dev/@extra-boolean/or';
</script>

README

Checks if any value is true.
📦 NPM, 😺 GitHub, 🏃 RunKit, 🌔 Minified, 📜 Files, 📰 JSDoc, 📘 Wiki.

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

This is part of package extra-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 {or} = require("extra-boolean");

or(true, false);
// true

or(false, false);
// false

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

or(false, false, false, false);
// false


References