Skip to content

Commit

Permalink
Map[index] and Set[index] printing
Browse files Browse the repository at this point in the history
  • Loading branch information
astoilkov committed Jan 13, 2025
1 parent 3f23a8e commit 51c3ef7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/inspect/inspectors/inspectIterable.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,7 @@ export function inspectIterableMultiLine(
type: "block",
spans: [
...array.flatMap((value, i) => {
const indexText = `[${i}]: `;
const indexText = `${type ?? ''}[${i}]: `;
const inspection =
type === "Map"
? inspectEntry(value, options, context)
Expand Down

0 comments on commit 51c3ef7

Please sign in to comment.