Loading collection data...
Collections are a way for you to organize kata so that you can create your own training routines. Every collection you create is public and automatically sharable with other warriors. After you have added a few kata to a collection you and others can train on the kata contained within the collection.
Get started now by creating a new collection.
Just for your information, I didn't close the discussion, I resolved the kata issue, because there was no kata issue to begin with:
The problem is in your code, and I already gave you a hint for you to figure out where your problem is. From that point, it's your job to fix it, not mine. Next time, be more humble and accept your code is not perfect as you think it was. You're probably testing your function outside Codewars with a different type of input, so it obviously won't work here.
This is not true, and please do not report posts which are not abuse, or which are not otherwise eligible for reporting. All of your three solutions are incorrect because they use input array incorrrectly. Your code of all three solutions does not present any example of "a problem of incorrect task testing".
Read this to see how to post properly formatted code blocks: https://docs.codewars.com/references/markdown#code-block .
Those 3 solutions are wrong, why are you using the spread operator? Not a kata issue. Read this too: https://docs.codewars.com/training/troubleshooting#post-discourse