commit | b50964aa695a146a6447af7305890a80bbfb8bb8 | [log] [tgz] |
---|---|---|
author | Akron <nils@diewald-online.de> | Mon Oct 12 11:44:37 2020 +0200 |
committer | Akron <nils@diewald-online.de> | Mon Oct 12 12:55:49 2020 +0200 |
tree | 91ac715957b5de750c2c80be416e5b05fa8a836d | |
parent | 7b7cc5b7d7b3c9012340f816544c1b1076acfd6d [diff] [blame] |
Modernize for;;-loops Change-Id: Ic6f86af0d674cc6643fc9eef2aa7431cfdf514f2
diff --git a/dev/js/src/vc/jsonld.js b/dev/js/src/vc/jsonld.js index 21260d4..cfa0acc 100644 --- a/dev/js/src/vc/jsonld.js +++ b/dev/js/src/vc/jsonld.js
@@ -52,8 +52,7 @@ // In case of a group, destroy all operands if (this._operands !== undefined) { - for (var i = 0; i < this._operands.length; i++) - this.getOperand(i).destroy(); + this._operands.forEach(i => i.destroy()); this._operands = []; }; },