I'm working with a JSON array/model that is structured as follows:
var jsonArray =
[0]
[1]
...
[x]
[anotherArray][0]
[1]
...
[e]
My goal is to extract only the arrays from [0] to [x] and save them into their own separate array. I'm thinking a splice, reduce, filter, or similar method could be used for this task. The end result should not include the arrays nested within anotherArray.