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.
This wouldn't work if there were any other characters besides the group tokens.
It's fine. Just write some goddamn comments.
Early return, and lack of invocation stack. Recursions and map/reduce look wonderful in JS, but are far more expensive than the humble for/in. It saddens me that the top-voted answer is also one of the slowest. I hope that's not a sign for the efficacy of this site as a resource.