I want a smaller way to write this condition I've tried to simplify it but it doesn't work with me
if(( data.includes(userId) || data.includes(userId.toString()) || data.includes(username) )) console.log(true)
this condition works very good but I want a simplified version of it
Aucun commentaire:
Enregistrer un commentaire