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.
I didnt know you can do that, very Cool!
i didnt know you can mutate arrays like that, thanks!
g is global checking, so matching for all cases and not the first case
i is for case-insensitive, by default regex is case-sensitive so haveing an i turns off case-sensitive mode
You have broken down this code to the most simplest form possible, curated an easy to read solution from a very complex problem. Amazing!
Clever indeed