https://i.sstatic.net/QIRzO.png
Here is an array that I need to modify by adding the object {"temperature":{"work":30,"home":24}} to the beginning:
0 : {title : "tptp", {"temperature":{"work":30,"home":24}}, lastview:"12-12 21:2"}
The code I am using is:
console.log("below is home");
console.log(this.home);
console.log(this.home[0].push({"temperature": {"work":30,"home":24}}));
However, I am encountering an error message saying
TypeError: this.home[0].push is not a function
.