Left-hand side of assignment expression cannot be a constant or a read-only property in Angular2
<p>Here's how my code looks like </p>

<pre><code>this.timezones = moment.tz.names();
for(let timezone in this.timezones) {
  this.timezones[timezone] = this.timezones[timezone] +' '+ moment.tz(this.timezones[timezone]).format('Z z');
}
</code></pre>

<p>I am getting the above mentioned error in line present inside for loop, I didn't get this error until i upgraded to angular2.1</p>

<p>is there any other way to access the elements of timezones variable to make it writable as well? </p>