Modernize for;;-loops
Change-Id: Ic6f86af0d674cc6643fc9eef2aa7431cfdf514f2
diff --git a/dev/js/src/panel/match.js b/dev/js/src/panel/match.js
index a6c50db..99f7366 100644
--- a/dev/js/src/panel/match.js
+++ b/dev/js/src/panel/match.js
@@ -164,17 +164,15 @@
var menuList = [];
// Show tree views
- for (var i = 0; i < treeLayers.length; i++) {
- var span = treeLayers[i];
-
- // Add foundry/layer to menu list
- menuList.push([
- span.foundry + '/' + span.layer,
- span.foundry,
- span.layer,
- span.type
- ]);
- };
+ treeLayers.forEach(
+ s =>
+ // Add foundry/layer to menu list
+ menuList.push([
+ s.foundry + '/' + s.layer,
+ s.foundry,
+ s.layer,
+ s.type
+ ]));
// Create tree menu
this._menuList = menuList;