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.
The test cases are not specifically enough, I wonder if you can add the following cases:
This doesn't work! (-2).twos(4) returns '1010' which should be '1110'
This is awesome but will go wrong while I wanna get a string of length >= 32. In JavaScript, numbers are storaged with 64bits but presented with 32bits, so 1 << 32(or higher) is '0...000' not '1...000', which causes the error.
I suggest adding test case for variable length arguments like this :