We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9d5318 commit fcb0973Copy full SHA for fcb0973
src/log.ts
@@ -18,6 +18,6 @@
18
*/
19
export const logFn = <T>(x: T): T => {
20
// eslint-disable-next-line no-console
21
- console.log(typeof x === 'object' ? JSON.stringify(x, null, 2) : x);
+ console.log(typeof x === 'object' && !(x instanceof Set) && !(x instanceof Map) ? JSON.stringify(x, null, 2) : x);
22
return x;
23
};
0 commit comments