debugMap()function

debugMap(value: ImmutableMap, depth = 1): string
ParamType
valueImmutableMap
The map to debug. required
depthunknown
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 depth levels.

Examples

debugMap(new Map([["a", 1]])) // `(value.size) {\n\t"a": 1\n}`