Modernize for;;-loops
Change-Id: Ic6f86af0d674cc6643fc9eef2aa7431cfdf514f2
diff --git a/dev/js/src/vc/statistic.js b/dev/js/src/vc/statistic.js
index cd8d0ce..0c3c6ca 100644
--- a/dev/js/src/vc/statistic.js
+++ b/dev/js/src/vc/statistic.js
@@ -44,16 +44,14 @@
statDL.classList.add("flex");
var statistic = this._statistic;
- var keys = Object.keys(statistic);
- for (i = 0; i < keys.length; i++) {
+ Object.keys(statistic).forEach(function(k) {
statSp = statDL.addE('div')
statDT = statSp.addE('dt');
- var k = keys[i];
statDT.addT(k);
statDT.setAttribute('title', k);
statDD = statSp.addE('dd');
statDD.addT(new Number(statistic[k]).toLocaleString());
- }
+ });
this._element = statDL;
return this._element;