I am trying to access email and password field but i dont know where this '0'
came. I am retrieving object from rethinkdb and it looks good without '0'
. But then am using Lodash _.assign()
method like this
var user = new User
var finduser ={}
dbuser = finduser // dbuser is the object retrieving from db
user = _.assign(user,finduser)
I am getting data like this
{
'0': {
'email': 'email@ymail.com',
'pswd': 'kdkd'
}
}
I just want to access email field