Skip to content

Commit 1ccd9fc

Browse files
committed
🌿 Show Symbol(...) in test subject
1 parent 1325620 commit 1ccd9fc

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

is_test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ const examples = {
4040
function stringify(x: unknown): string {
4141
if (typeof x === "function") return x.toString();
4242
if (typeof x === "bigint") return `${x}n`;
43+
if (typeof x === "symbol") return x.toString();
4344
return JSON.stringify(x);
4445
}
4546

0 commit comments

Comments
 (0)