Skip to content

Commit

Permalink
fix: map/set logging (#317)
Browse files Browse the repository at this point in the history
  • Loading branch information
mshanemc authored May 24, 2024
1 parent c9d5318 commit fcb0973
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/log.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@
*/
export const logFn = <T>(x: T): T => {
// eslint-disable-next-line no-console
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);
return x;
};

0 comments on commit fcb0973

Please sign in to comment.