how can I validate an email in vueJs + firebase?
<p>how can I validate an email in vueJs + firebase? <br></p>

<p>for example I have data array email: ['badi@gmail.com','badEmail.com','realEmail.com']</p>

<p>and I usually validate it in vueJs+firebase like this </p>

<pre><code> computed: { 
 validation: function () {
  return {
    email: !!this.categoryTest.email.trim(),

  } 
},
isValid: function () {
  var validation = this.validation
  return Object.keys(validation).every(function (key) {
    return validation[key]
  })
},
}
</code></pre>

<p>but for checking array I'm
still confused..
thanks</p>