I have an object in Javascript and it has some entries like:
{tempmin = 5,
tempmax= 10
}
I want to replace keys like:
.then(forecasts => {
                        this.foreCasts = forecasts.map(s => {
                            if (s.hasOwnProperty("tempmin")) {
                                s.tempmin = "Minimum Temperature"
                            }
                            if (s.hasOwnProperty("tempmax")) {
                                s.tempmax = "Maximum Temperature"
                            }
                        });
but I got the error : forecasts.map is not a function
I have checked this but it did not work. How can I replace these keys ?
 
    