Collection of sort functions.
Function that throws its argument.
a string or an Error
.
Assert that the call in the argument cannot return.
Check that the supplied {@link Row} is of the desired Type, returning it as that type, or throwing an exception if it is not.
The {@link Row} to check
Check that the supplied {@link Row} is of the specified Type
The {@link Row} to check
the Type the row should be.
Construct a family of type functions: a type guard, a coersion, and a checked cast.
A class constructor
an optional coercion function to be tried in the to* (coercion) variant
Format a number as US currency.
Format a number as US currency
0 or 2 (default = 2) positions for cents
Given a Heap
, give a generator to the (sorted) values in the heap.
Simple type-aware identity function.
a
Produce an index to a list of {@link Named objects.
A list of Named objects
An index of the objects by name.
Type guard to determine if the argument has a monetary .value
field.
A higher-order function that returs a sort function.
a comparator
a sort function that sorts a list according to cmp
Higher-order function, that creates summing functions.
a function that takes an item and returns a number.
a function that validates that the result is of type V
.
a function that takes a list of items and returns the sum of the values returned by applying f.
A comparator that sorts according to the "natural" order. First by type, then by string or numerical ordering if a string, number, boolean, or symbol.
A function that sorts according to natural order. See naturalCMP.
a copy of list in sorted order.
A comparator that does not alter the sort order. It regards everything as equal, and thus Javascript's stable sort leaves the ordering unchanged.
0
Format a row of values in a Markdown table.
Array of values for the cells in the row
a markdown-formatted string
Get the total value of a list of monetary items.
a list of IMonetaryItem items.
Construct a family of type functions: a type guard, a coersion, and a checked cast.
A type guard.
A string for error messages, when the type guard fails
an optional coercion function to be tried in the to* (coercion) variant
Returns the unique values, as compared by ===
a list of strings or other values to be compared by ===
Generated using TypeDoc
General utilities, without runtime dependencies on other parts of the system.