-
Notifications
You must be signed in to change notification settings - Fork 0
xnor
Subhajit Sahu edited this page Jan 31, 2021
·
15 revisions
Check if even no. of values are true. 📦 😺 🏃 📼 🌔 📜 📰 📘
boolean.xnor([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.xnor(true, true);
// true
boolean.xnor(false, true);
// false
boolean.xnor(true, true, false, false);
// true
boolean.xnor(true, true, true, false);
// false