Skip to content

Commit fce1dc5

Browse files
authored
Update src/logger/index.ts
1 parent 2e6bc64 commit fce1dc5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/logger/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ function removeCircular(obj: any, refs: any[] = []): any {
6161
return obj.toJSON();
6262
}
6363
// Only check for circularity among ancestors in the recursion stack.
64-
if (refs.indexOf(obj) !== -1) {
64+
if (refs.includes(obj)) {
6565
return "[Circular]";
6666
}
6767
// Add the current object to the recursion stack.

0 commit comments

Comments
 (0)