refactor(): use const and let instead of var
This commit is contained in:

committed by
Victor Berchet

parent
73593d4bf3
commit
77ee27c59e
@ -37,7 +37,7 @@ export class RootTreeComponent {
|
||||
|
||||
function createModule(): any {
|
||||
const components: any[] = [RootTreeComponent];
|
||||
for (var i = 0; i <= maxDepth; i++) {
|
||||
for (let i = 0; i <= maxDepth; i++) {
|
||||
components.push(createTreeComponent(i, i === maxDepth));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user