I have array like above. I want to input {"temperature":{"work":30,"home":24}}
object to the first of array.
So array should start with:
0 : {title : "tptp", {"temperature":{"work":30,"home":24}}, lastview:"12-12 21:2"}
My code is
console.log("below is home");
console.log(this.home);
console.log(this.home[0].push({"temperature": {"work":30,"home":24}}));
But I have error TypeError: this.home[0].push is not a function
.