Clarified in description
I've just checked the description and this particular test indeed contradicted it. Reset the trainer and try your code again.
I think the JavaScript tests should be tweaked. There's a few questions about it. Coders have to mess with it in order to get it to pass.
What's wrong? How should it be tweaked? Why? All tests are correct, and expect you to modify the input object.
Description updated
Not an issue
This doesn't seem like an issue with the kata, so I'm going to resolve it unless anyone offers further insights
I'll include an older comment that should help you out. You're using 2 loops, which winds up being on O(n^2) algorithm.
Well it looks to me like when list.next immediately returns false (when there's only one list item), your function never calls [].concat and therefore never creates an array.
Loading collection data...
Clarified in description
I've just checked the description and this particular test indeed contradicted it. Reset the trainer and try your code again.
What's wrong? How should it be tweaked? Why? All tests are correct, and expect you to modify the input object.
Description updated
Not an issue
This doesn't seem like an issue with the kata, so I'm going to resolve it unless anyone offers further insights
I'll include an older comment that should help you out. You're using 2 loops, which winds up being on O(n^2) algorithm.
Well it looks to me like when list.next immediately returns false (when there's only one list item), your function never calls [].concat and therefore never creates an array.