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.
sometimes i wonder weather i want to get to know all js quirks or to switch the language...
clear solution i love it!
eval is evil
Since optable is used as an enum here, a good practice would be to add:
Object.freeze(optable);
Not that it really matters on this platform, but I liked this solution so I did some digging and found this unfortunately... https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/eval#Never_use_eval!
Quick and dirty, but in javascript does the trick. Not arbitrary at all.
Arbitrary code execution.