samuelmarina / is-even

Is a number even?
1.85k stars 193 forks source link

Add case insensitive support #163

Open DadiBit opened 3 years ago

DadiBit commented 3 years ago

I'd suggest to create a new function where every if statement checks for every possible combination of lower and upper case characters to form the strings.

Please note that .toLowerCase() is inefficient and therefore it should be avoided.