I have the following array of objects:
participantIdentities: Array(2)
    0:
        participantId: 1
        player: Object
            accountId: (...)
            summonerName: "test1"
    1:
        participantId: 2
        player: Object
            accountId: (...)
            summonerName: "test2"
I am trying to figure out how to return the object whose player object property summonerName is "test1". Sadly I can't quite figure it out. I tried using find() but I haven't had much success so far. I assume I'm doing something wrong.
let participants = match.details.participantIdentities;
participants.find(([key,value]) => value.key === "test1");
 
    