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

Check if antecedent ⇒ consequent (a ⇒ b). 📦 😺 🏃 📼 🌔 📜 📰 📘

Similar: imply, nimply.
Similar: imply, eq.


boolean.imply(a, b);
// a: antecedent
// b: consequent
const boolean = require("extra-boolean");

boolean.imply(false, false);
// true

boolean.imply(false, true);
// true

boolean.imply(true, true);
// true

boolean.imply(true, false);
// false


References

Clone this wiki locally