That's not spread, that's rest.
Tests should use deep equality. Random tests needed.
Yep, that works. Thanks!
Try now @JohanWiltink
The example solution is buggy and is not passing the expanded testing I have implemented for the other languages.
I don't do CoffeeScript, so I can't fix it.
Could someone please explain why I need the new? I thought with Min and Max functions you are just
accessing the given array, without creating new elements. Thanks in Advance
Try that with uint instead..!
Since the question clearly states non-negative
It tells me that the tests are uneditable. Sorry buddy!
Thanks for the tip. Will go ahead and change the title and description again.
If there is someone who can contribute to the unit tests that would be great!
No spread here either. I'd say the problem is in the kata design, not in the solutions.
This comment is hidden because it contains spoiler information about the solution
% means Modulo operation.
if (x % 3 === 0) means x could be one of the values 0, 3, 6, 9, ..., x, 3x, ..., it could be -3, -6, -9 and ...