We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Symbol(...)
1 parent 1325620 commit 1ccd9fcCopy full SHA for 1ccd9fc
is_test.ts
@@ -40,6 +40,7 @@ const examples = {
40
function stringify(x: unknown): string {
41
if (typeof x === "function") return x.toString();
42
if (typeof x === "bigint") return `${x}n`;
43
+ if (typeof x === "symbol") return x.toString();
44
return JSON.stringify(x);
45
}
46
0 commit comments