I have an array like this:
[
[{"text1" : "text"1"},{"text2" : "text"2"}],
[{"text3" : "text"3"},{"text4" : "text"4"}]
]
And I am trying to merge the arrays via spread operator
arr = [...arr];
So I can end up with something like this
[{"text1" : "text"1"},{"text2" : "text"2"},{"text3" : "text"3"},{"text4" : "text"4"}]
But I still can’t merge two arrays. What I am doing wrong in merging the indexes?