Angular 6 is here already, so in short tutorial provided by Medium i founded this lines of code.
else if (!!this.day4Name && !this.day5Name && days[date] !== this.day4Name) {
this.day5Name = days[date];
this.day5State = data[i].weather[0].main;
this.day5Temp = Math.round(data[i].main.temp);
}
I'v try to google it, but with no results for reasonable explanation. Can someone explain its behavior. Thanks :)