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.
...and one more thing: the issue with the cropping disappears once you do not modify the original array.
(I had the same problem, and found this answer much more down here, I thought I repeat it so that others do not have to dig so deep.)
I think it would be nice if the problem description mentioned that the program shouldn't modify the original array...
You were right, I apologize. if you are struggling with this here is what I found
// ES6 way
const cloneSheepsES6 = [...sheeps];
if you correct this error it also fixes the error with number 4.
There is only one test that checks input for changes, I think. What matters is not how often you do it, but the fact that you did it. It's not hard to avoid mutation, you can search about it online.
JS version isn't broken at all, over 900 users completed it. You provided no real specifics or test cases that prove it is wrong, so I'm closing this, because it's not issue with kata itself, but something wrong in your code.
This comment is hidden because it contains spoiler information about the solution