We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0ad2efc commit d88186bCopy full SHA for d88186b
src/compiler/utilities.ts
@@ -2439,18 +2439,9 @@ namespace ts {
2439
2440
stack.push(value);
2441
2442
- if (isArray(value)) {
2443
- for (const entry of value) {
2444
- if (hasCycles(entry, stack)) {
2445
- return true;
2446
- }
2447
2448
2449
- else {
2450
- for (const key in value) {
2451
- if (hasProperty(value, key) && hasCycles(value[key], stack)) {
2452
2453
+ for (const key in value) {
+ if (hasProperty(value, key) && hasCycles(value[key], stack)) {
+ return true;
2454
}
2455
2456
0 commit comments