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.
Sample tests added.
Not an issue
Needs test cases.
The description should elaborate on what is required. Without test cases this would have been much more confusing.
If the value null is passed in as an argument in JS the user/program has intentionally sent no value (as I understand it). It may be good to test for undefined as this would represent the user not giving any input to the function rather than an intentional null value.
I apologize there was a typo in the description. I just updated it now. undefined input as in ?
The description for the Kata is correct but the example given to illustrate it is wrong for javascript. I would mark this as having Major Issues if it was possible for me. Having no test cases compounded the issue.
The Kata states that you will be given an "array of strings" while the example is an array with a string full of fruits and the example output is once again an array with a single string in it. My solution includes solutions for both if you would like to see the difference illustrated.
May also want to test for undefined rather than/in addition to null as input.
In need of test cases.
The instructions should clearly describe the object that is expected as a result rather than just illustrating it. More than one test case would be a nice addition.
Needs default JS test cases.