I have an array like this
const myArray = [ [ false ], [ true ], [ false ] ]
i want to get index of an element that has value == true from array above.
so because the true
from array above is in the second element, then I want to get 1
as the index result
how to do that ?