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.
Beautiful. Can't believe it didn't cross my mind.
I might be wrong, but
(ops[operation] || function() {return null;})
seems to return a function fromops
object or a function that returnsnull
if no suchoperation
is defined. This is possible becauseops[operation]
returnsundefined
for unexistent members, which in turns forcesfunction () { return null; }
to be evaluated and returned.