I have the following array and I want to find the second object by only name and email properties using find method. How do I need to specify these properties in the method?
const data = [
{
name: 'bob',
email: 'asd@mail.com',
password: 'sss'
},
{
name: 'bill',
email: 'www@mail.com',
password: 'eee'
},
{
name: 'sean',
email: 'qqq@mail.com',
password: 'xxx'
}
]