Hacker News new | ask | show | jobs
by Xymak1y 4510 days ago
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.

1 comments

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.