samuelmarina/is-even

Passing a string value doesn't work

Closed this issue · 0 comments

Since you compare the value using === it fails if you pass it a string representation of the number

I propose you add additional checks for every possible string value as well as number, example:

else if(number === 13) return false;
else if(number === "13") return false;