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.
You could probably do it as a one-liner in Ruby, since operators can be called as methods.
But in JavaScript, the best you could do is an object lookup, but it would be lengthy unless you define variables outside the function.
Eval is evil when you don't have control of what could possibly be the input. But for this case it is the go to solution.