Consider an array like the following:
[
{ "user": "tom",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="13767653707c3d707c7e">[email protected]</a>"
},
{ "user": "james",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="fa9898ba9995d4999597">[email protected]</a>"
},
{ "user": "ryan",
"email": "<a href="/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="f48686b4979bda979b99">[email protected]</a>"
}
]
However, the order of the objects is not guaranteed. If you need to check if ryan
, or any other user, exists in one of these objects, how would you approach it?