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 is straight forward and insightful.
filter returns a new array and doesn't mutate the argument.
This comment is hidden because it contains spoiler information about the solution
its clever but not the best practice, you should'nt change the data that was inputed but rather create a separate data.
When I use performance.now() I don't see any difference between both solution
This comment is hidden because it contains spoiler information about the solution
nice1
is indexOf better than includes? I dont know why this is no. 1 ... the 2nd solution is not better?
closures are a big big feature in javascript. They will let you return functions with prefixed parameters for example. Look at it as a function factory for that particular case
I submitted this same solution, good one
.
This solution's algorithm is O(ab) yet it is possible to write one that is O(a + b).
Please consider the performance of solutions
Nice!
You just discovered closures.
what if the size of b is significantly large?
Loading more items...