lundi 12 octobre 2020

if value is equal to either a or b. shorthand? [duplicate]

Yea some javascript shorthand. if that value is equal to the value of a or b, maybe something like this?

if(val==a||b)

Aucun commentaire:

Enregistrer un commentaire