Skip to content
Subhajit Sahu edited this page Jul 19, 2022 · 15 revisions

Check if antecedent ⇒ consequent.

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


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

xboolean.imply(false, false);
// → true

xboolean.imply(false, true);
// → true

xboolean.imply(true, true);
// → true

xboolean.imply(true, false);
// → false


References

Clone this wiki locally