I need to find the index of an array of array object where it is true. My array:
[
[
{id: 1, status: false},
{id: 2, status: true}
],
[
{id: 13, status: false},
{id: 14, status: false}
],
[
{id: 18, status: true},
{id: 19, status: false}
]
]
In the case above I should expect index 0 and 2 to be returned.
[0, 2]: "What are the indices of the arrays in the outer array that have some element in them withstatusoftrue?" But it is also the answer to a very different question: " For what indices are there inner arrays where the value at that index hasstatusoftrue?" Which do you mean?