boolean

Contains functional version of 'always-true', 'always-false', 'is-truthy', and 'is-falsy'.

Methods

static alwaysFalse() → {Boolean}

Returns `false`.
Returns:
Boolean

static alwaysTrue() → {Boolean}

Returns `true`.
Returns:
Boolean

static equal(a, b) → {boolean}

Equality operator.
Parameters:
Name Type Description
a *
b *
Returns:
boolean

static equalAll(a, …args) → {boolean}

Equality operator for all.
Parameters:
Name Type Attributes Description
a * Item `0`.
args * <repeatable>
Others
Returns:
boolean

static isFalsy(value) → {Boolean}

Returns whether `value` is 'falsy' or not
Parameters:
Name Type Description
value
Returns:
Boolean

static isTruthy(value) → {Boolean}

Returns whether `value` is 'truthy' or not
Parameters:
Name Type Description
value
Returns:
Boolean