We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ef473e3 commit bc02b98Copy full SHA for bc02b98
extension.js
@@ -74,15 +74,15 @@ function _recursiveApplyInternal(actor, depth)
74
}
75
76
// Check actor immediate children before using recursion
77
- if (children.map(child => _apply(child)).includes(true))
+ if (children.map(child => _apply(child)).indexOf(true) >= 0)
78
{
79
return true;
80
81
82
// Check children recursively
83
if (depth < MAX_RECURSE_DEPTH)
84
85
- if (children.map(child => _recursiveApplyInternal(child, depth +1)).includes(true))
+ if (children.map(child => _recursiveApplyInternal(child, depth +1)).indexOf(true) >= 0)
86
87
88
0 commit comments