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.
This comment is hidden because it contains spoiler information about the solution
Please, use spoiler flag, your comments in the solutions are visible in the Home page Discourse.
can someone explain what your filter function does whats the one & all about isnt the AND operator suppose to have 2 &&
Personally I wasn't concerned about performance issues in this kata, I just used reduce because it was lot faster to write.
My guess would be that
filter
creates a new array and populates it, whilereduce
just generates a single number.