ddash.utils

General utilities

ModuleFunctionsPropertiesDescription
$(DDOX_NAMED_REF ddash.utils.deref, `deref`)$(DDOX_NAMED_REF utils.deref.deref, `deref`)Simulates an if/else chain with expressions
$(DDOX_NAMED_REF ddash.utils.expect, `expect`)$(DDOX_NAMED_REF utils.expect.Expected, `Expected`)<br> $(DDOX_NAMED_REF utils.expect.Unexpected, `Unexpected`)<br> $(DDOX_NAMED_REF utils.expect.expected, `expected`)<br>Used to give types to predicates with certain common functionalities
$(DDOX_NAMED_REF ddash.utils.truthy, `truthy`)$(DDOX_NAMED_REF utils.truthy.isTruthy, `isTruthy`)<br> $(DDOX_NAMED_REF utils.truthy.isFalsey, `isFalsey`)<br>Call throwing functions as expressions

Modules

deref
module ddash.utils.deref

Dereferences an object depending on its type

expect
module ddash.utils.expect

An expected result type

truthy
module ddash.utils.truthy

Truthy values: so not any of false, null, 0, "", none, and NaN.

Meta