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
This comment is hidden because it contains spoiler information about the solution
No random tests
Node 12 should be enabled
This comment is hidden because it contains spoiler information about the solution
Tests are using
Test.expect
.Not an issue
This comment is hidden because it contains spoiler information about the solution
Broken analogy. Dojos do not intentionally teach bad habits.
Why not change it to an actual useful task like mapping an array of values to an array of keys or something?
Sure, it's a lot easier of a problem, but at least it makes sense and trains you how to do something that is useful.
And there's still "insight" to gain...
You cannot, that's true. But this is a dojo here... and the kata should give you an insight.
btw: In Karate you won't defend yourself running a kata (e.g. Empi or Unsu) when you gonna beaten up by some rude guys.
Fool's kata. Waste of time. You cannot depend on parameter names in JavaScript. Give up now.
This comment is hidden because it contains spoiler information about the solution
If you are looking for fastest solution, for loop should always be faster than any Array prototype methods.
A faster Array prototype method for this problem should be a single reduceRight since there is no concat required after as opposed to a filter solution.
This comment is hidden because it contains spoiler information about the solution
Nice one, but I believe the description could use some improvements - specifically, I think it should be more specific about the argument names.
There's no information indicating whether the argument names should be extracted from the value (as the usage example might imply) or fixed arg names should be used (as the test cases seem to indicate).
I'm guessing the latter was the original intent, but seeing how most solutions focus on parsing the values, the description definitely is not clear enough in this regard.
Well, it does not need more, but better test cases, like using special char words... as described in instructions. The random test case generator is a nice thing, but not very productive and not comprehensive. WOuld be much better to test exactly what's written in the instructions. Nevertheless, nice kata!
Loading more items...