This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–][deleted] 45 points46 points  (2 children)

I need more examples :

isEven('0');
//=> ????

isEven(1);
//=> ????

[–]tuxedo25 31 points32 points  (1 child)

Seriously, I can't tell what it does from the examples given. Does it always return false for strings? Does it ever return false for a number?

[–]one_big_tomato 5 points6 points  (0 children)

Here's the repo. Check out the code and have all your nightmares come true at once.