If I have an array of nested objects with random keys, how can I find the index of an object knowing the random key?

For example index of object with key Jas9d8d?
(Answer would be 0)

```
const myArray = [
    Jas9d8d:{
        151231230123:{
           key1:value
           key2:value
           key3:value},
    },

    gkdkaksd9d:{
        151231230123:{
           key1:value
           key2:value
           key3:value},
    },

    hdhfe89hef:{
        151231230123:{
           key1:value
           key2:value
           key3:value},
    },
]

```