Hi i dont't know how to compare each elements of the array to the state:
doesCustomerExist = () => {
const { customers } = this.props;
let result = customers.map(c => c.phone)
if(result === this.state.phone)
return (console.log('already exist'))
console.log(result)
}

this.state.phoneanarrayor a single element (string)?