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.
The urge to write a cheeky one liner is too strong!
*make it
Oh yes haha most of my codewars solutions would not male it to my professional codebases haha
Although this is my solution I'd hate to have this in a real codebase because of readability.
Dang!! I knew there would be a regex for it... spent almost an hour trying to come up with it... finally quit and went with ifs and substrings :(
At the end we narrow the result to the second item of the array. Why does it return array with 2 items?
Spread + filter, pure fire! Filter method is so powerful.
Spread + filter, pure fire! Filter method is so powerful.
Spread + filter, pure fire! Filter method is so powerful.
Spread + filter, pure fire! Filter method is so powerful.
Spread + filter, pure fire! Filter method is so powerful.
Spread + filter, pure fire! Filter method is so powerful.
Impressive.
Impressive.
Impressive.