mardi 25 février 2020

Is there a cleaner way of doing this if statement?

if(input.charAt(i) == '0' || input.charAt(i) == '1' || input.charAt(i) == '2') {
}

Is there a way to condense this if condition, or no?

Aucun commentaire:

Enregistrer un commentaire