So I want to add some data to an array.
this is my array
var x = [
{some data},
{some data},
{some data} 
]
this is my new data I want to add to an object in the array x
var newData = [
{}
]
I want this as result:
x = [
{some data},
{some data, {newData} },
{some data} 
]
I know about the push function but this just adds the newData to the array. I want to add it to an object inside the array.
