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.
Issue with your code is not an issue, JS's tests work fine
In JS you copy the outer array then each element (inner array):
Same problem, I used thingy called "deep copy". It copies from another copy or something like that. In Ruby the syntax is name1 = Marshal.load(Marshal.dump(name2)). Pretty sure there is something like that in JavaScript.
I have the same problem,how to solve it?
I think good ol' console.log() can help; you with it.
And making test increasingly difficult, i.e. start with a trivial case then add "more complex test" until you get to the point you want