-
Notifications
You must be signed in to change notification settings - Fork 0
xnor
Subhajit Sahu edited this page Jan 26, 2021
·
15 revisions
Check if even no. of values are true. 🏃 [:vhs:] 📦 🌔 📒 📰 📘
boolean.xnor(a, b, ...)
// a: 1st boolean
// b: 2nd 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