Skip to content

Commit ed3e868

Browse files
committed
chore: move away from var
1 parent 517e756 commit ed3e868

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/utils/group-helper.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class GroupHelper {
2020
});
2121
}
2222
mergeRecursive(acc, curr) {
23-
for (var p in curr) {
23+
for (const p in curr) {
2424
try {
2525
// Property in destination object set; update its value.
2626
if (curr[p].constructor == Object) {
@@ -40,7 +40,7 @@ class GroupHelper {
4040
if (!arr) {
4141
return;
4242
}
43-
var result = {};
43+
const result = {};
4444
let arrLength = arr.length;
4545
for (let i = 0; i < arrLength; i++) {
4646
let key = Object.keys(arr[i])[0];

0 commit comments

Comments
 (0)