refactor(): use const and let instead of var

This commit is contained in:
Joao Dias
2016-11-12 14:08:58 +01:00
committed by Victor Berchet
parent 73593d4bf3
commit 77ee27c59e
435 changed files with 4637 additions and 4663 deletions

View File

@ -69,14 +69,14 @@ export class AppComponent {
copies: number[] = [];
values: string[] = [];
constructor() {
for (var i = 0; i < 50; i++) {
for (let i = 0; i < 50; i++) {
this.values[i] = `someValue${i}`;
}
}
setCopies(count: number) {
this.copies = [];
for (var i = 0; i < count; i++) {
for (let i = 0; i < count; i++) {
this.copies.push(i);
}
}