The type of stored values.
The type of keys at each level of the path. Defaults to string | symbol | number.
The type of stored values.
The type of keys at each level of the path. Defaults to string | symbol | number.
Function
getFlat
A flat key produced by flattenKey.
Optionaldepth: number
Optional depth of the entry for numerical flat keys.
The stored value, or undefined if not found.
Function
getFlatKey
The value to query.
The flat key, or undefined if not found.
Function
setFlat
The value to store.
A flat key produced by flattenKey.
Optionaldepth: number
Optional depth of the entry for numerical flat keys.
Function
has
Ordered path from outermost to innermost key.
Function
hasFlat
A flat key produced by flattenKey.
Optionaldepth: number
Optional depth of the entry for numerical flat keys.
Function
remove
Ordered path from outermost to innermost key.
Function
flattenKey
The key path to serialize.
The flat key, or undefined if the path is invalid.
Function
scopeKey
The flat key to convert.
Optionaldepth: number
Optional depth of the entry for numerical flat keys.
The key path, or undefined if conversion fails.
Convert a flat key back into a key path. Reverses flattenKey.
"k0|k1|k2" becomes [k0, k1, k2].ProtectedfindProtectedget
GradumNestedMap
Description
A map of arbitrary nesting depth, addressed by a
...keyspath rather than a single key. Entries can also be reached by a flat key that collapses a whole path into one value, so a nested structure can be indexed as if it were flat.