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.
But hey exists. That is the only reason why I asked
https://ibb.co/cQWsiw
P. S. I do not try to say that you solution some how bad. It is indeed best practice. I just wondering were these tests at the time when you submited your solution or not.
Did not see how you managed to pass all the tests. What if
pattern
parametr will be missing and what if both will?This comment is hidden because it contains spoiler information about the solution
I am don't sure about double fitering over the array. What about the perfomance speed?
But looks great! Best Practices indeed!