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

Check if even no. of values are true.


boolean.xnor(a, b, ...)
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


References

Clone this wiki locally