mercredi 24 novembre 2021

Js Array push Data issue

I have 2 var

// all users

let users = [
{
id:0,
name:'Random', 
email:'test@gmail.com'
},
//
//
//
1000 data
]

// Check user

let CheckUser={
  id:new Date.getVal(),
  name:'Ali'
  email:'Ali@gmail.com'
}

Now i want that if the CheckUser.email is not match the users email then push the object

But first check the all dataa of the arry then run the condition not every loop index....

Please help meee.....

Aucun commentaire:

Enregistrer un commentaire