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