Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

I ran into some bugs when testing, such as: http://imgur.com/B0VVnmn

The test will pass but I can't submit it, because the test doesn't pass. Meh.



That test doesn't pass for me in Chrome console.

I think it's because your isNaN check shortcircuits the other checks as you're checking if the array element is NaN. Is that what you meant to do?

Also when you recursively call `numbers(args)` your `[].slice` will put your array inside another array.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: