debugSet()function

debugSet(value: ImmutableSet, depth = 1): string
ParamType
valueImmutableSet
The set 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 set.

Convert a Set into a readable debug string.

  • Prefixes the constructor name and item count.
  • Expands items down to depth levels.

Examples

debugSet(new Set([1, 2])) // `(value.size) {\n\t1,\n\t2\n}`