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.
So, this solution assumes that the test case has at least one "9" in it? I do believe this would fail for an input like "111121111", right?
this could be much easier in haskell due to lazy code.
This comment is hidden because it contains spoiler information about the solution
The test cases do not check if the function returns the correct value for something defined.
var val = namespace({items: {things: 'yep'}}, 'items.things');
Test.expect(val, 'namespace(this, "items.things") should have returned "yep" since the namespace is already set. Instead it returned undefined')
that's some crazy ninja regex skills