I have a document being passed into a function which has the format
0:{username:"test", name:"TestName"}
and everything prints in the console properly, but when I try to access userName from it I get an undefined error.
My code currently:
const newuserDocs = result.docs;
console.log(newuserDocs);
if(this.newUserDocs.username === "test"){
console.log('THE USERNAME IS GOOD');
}
I know that newUserDocs is set because I can dump it in the console or elsewhere just fine but trying to do this comparison is failing at the .username portion
What am I doing wrong
