boole
chained logical conditions: and, or, not, xor
Usage
The following logical operators are available:
and
or
not
xor
A boole
chain should always end with isTrue()
or isFalse()
const x = 3 if console if console if boole console if console
Operators can be chained.
if console
If first argument is omitted, expression can start with a negation.
if console
It is possible to create truthy and falsy functions.
// Start from a given function.const lowerThanFour = x < 4 // Create a truthy function.const isLowerThanFour = if console if console // Create a falsy function.const isNotLowerThanFour = if console if console