History

Use Array.includes and String.includes

Simon Legner committed 2 years ago

Commit 82fd7e61 parent f36465910 files · +27 −49Browse files

Showing the changes to assets/javascripts/debug.js (1 of 10 files). Show all

Unified · Split

assets/javascripts/debug.js+1−1
@@ -75,7 +75,7 @@ this.viewTree = function (view, level, visited) { · 74 unmodified lines
7575 if (visited == null) {
7676 visited = [];
7777 }
78− if (visited.indexOf(view) >= 0) {
78+ if (visited.includes(view)) {
7979 return;
8080 }
8181 visited.push(view);