Skip to content

Commit 51c3ef7

Browse files
committed
Map[index] and Set[index] printing
1 parent 3f23a8e commit 51c3ef7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/inspect/inspectors/inspectIterable.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ export function inspectIterableMultiLine(
129129
type: "block",
130130
spans: [
131131
...array.flatMap((value, i) => {
132-
const indexText = `[${i}]: `;
132+
const indexText = `${type ?? ''}[${i}]: `;
133133
const inspection =
134134
type === "Map"
135135
? inspectEntry(value, options, context)

0 commit comments

Comments
 (0)