I have managed to pull some users back from my firebase database and am outputting them into the console
[Object, Object, Object, Object, Object]
Each object has:
gender: "male"
liked: "liked"
name: "ed"
not_liked: "liked"
username: "[email protected]"
useruid: "HSRcN6PuylXbv87kSWxKVtWffaI3"
how can I go through the array and say if the useruid with a value HSRcN6PuylXbv87kSWxKVtWffaI3 then console.log() the associated name. In this case ed
my pseudo attempt :
if (Object.gender.includes('male')) {
console.log('yes')
}
else {
console.log('nah')
}
Object? And why are you accessinggenderwhen you say you're interested in theuseruid?