samuelmarina / is-even

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

Suggestion to make life easier #185

Open cinexsoft opened 3 years ago

cinexsoft commented 3 years ago

Why don't you just use this library.

Hocuri commented 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.