Library for advanced type level programming in JS.
See the trait class.
The traits in this file usually are implemented for at least: Plain Object, Map, Set, Array, String
Laws
These apply to all traits in this class.
- Arrays, Strings and any list-like data structures are treated as mappings from index -> value
- Array sparseness is ignored on read; any list-like container
hasa specific index ifsize(myContainer) => key; getting an unset value yieldsundefined - Sets are treated as mappings from a key to itself