debugMap()function
debugMap(value: ImmutableMap, depth = 1): string
| Param | Type | |
|---|---|---|
value | ImmutableMap | The map to debug. required |
depth | unknown | How many levels of nested containers to expand (defaults to 1). Defaults to 1 |
| Return | |
|---|---|
string | A human-readable string representation of the map. |
Convert a Map into a readable debug string.
- Prefixes the constructor name and entry count.
- Expands keys and values down to
depthlevels.
Examples
debugMap(new Map([["a", 1]])) // `(value.size) {\n\t"a": 1\n}`