debugSet()function
debugSet(value: ImmutableSet, depth = 1): string
| Param | Type | |
|---|---|---|
value | ImmutableSet | The set 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 set. |
Convert a Set into a readable debug string.
- Prefixes the constructor name and item count.
- Expands items down to
depthlevels.
Examples
debugSet(new Set([1, 2])) // `(value.size) {\n\t1,\n\t2\n}`