We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2e6bc64 commit fce1dc5Copy full SHA for fce1dc5
src/logger/index.ts
@@ -61,7 +61,7 @@ function removeCircular(obj: any, refs: any[] = []): any {
61
return obj.toJSON();
62
}
63
// Only check for circularity among ancestors in the recursion stack.
64
- if (refs.indexOf(obj) !== -1) {
+ if (refs.includes(obj)) {
65
return "[Circular]";
66
67
// Add the current object to the recursion stack.
0 commit comments