Open cinexsoft opened 3 years ago
Yeah, there is a library, let's just use it!
But, to be sure, we should check the numbers one by one:
if(number === 0 || number === "0" || number === "zero" || number === "Zero" || number === "ZERO") return is_even("zero");
else if(number === 1 || number === "1" || number === "one" || number === "One" || number === "ONE") return is_even("one");
and so on.
Why don't you just use this library.