Currently, I am tackling some vuejs code to ensure compatibility with IE 11. Struggling with a persistent expected semicolon error in this particular function:
chemicalFilters: function (chemical)
{
var max = 0;
var min = 100;
for (var component of this.components)
{
if(component.component_name == chemical)
{
if (max < component.component_value)
max = component.component_value;
if(component.component_value != 0 && min > component.component_value)
min = component.component_value;
}
}
if(max == 0 && min == 100)
min = max;
else
{
min = Math.round(min*100);
max = Math.round(max*100);
}
this.component_filters.push({component_name: chemical, range:[min,max], min:min, max:max, originalRange:[min,max]});
},
Especially concerned about this line:
if(component.component_name == chemical)