Skip to content

Commit fcb0973

Browse files
authored
fix: map/set logging (#317)
1 parent c9d5318 commit fcb0973

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/log.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
*/
1919
export const logFn = <T>(x: T): T => {
2020
// eslint-disable-next-line no-console
21-
console.log(typeof x === 'object' ? JSON.stringify(x, null, 2) : x);
21+
console.log(typeof x === 'object' && !(x instanceof Set) && !(x instanceof Map) ? JSON.stringify(x, null, 2) : x);
2222
return x;
2323
};

0 commit comments

Comments
 (0)