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.
Quite slow solution unfortunately, but amongst the cleanest anyway :)
Seems the mentioned performance requirements are not that strict..
This comment is hidden because it contains spoiler information about the solution
This is amazing.
nice
This plus sign is an unary plus operator that converts for example our result the array [2] to the Number type 2. Remove it and our result is [2], we could also replace + with Number().
What does the + before the arr.filter do?