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

Check if even no. of values are true.


boolean.xnor(a, b, ... [:package:] [:smiley_cat:] [:running:] [:moon:] [:ledger:] [:newspaper:] [:blue_book:]

```java
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