Currently, I am dealing with an array nested inside another array. The structure looks like this:
Structure:
First Array
[
{
Second Array
[
{
}
]
}
]
I am attempting to replace all instances of Second Array with a new array that I have created. This is what I have tried so far:
this.FirstArray.map(
(myArray) =>
myArray.SecondArray === this.MyNewArray
)
However, despite my efforts, the old values are still present and my new array has not replaced them. What could I be doing wrong?