The semantic of undefined in JS means nothing is even passed (judging from how it usually appears and how it interacts with other language features). null in typed language (especially OOP languages) usually means bottom. So it really depends on what this input validation is even supposed to mean. Is the input not provided, or is it a bottom that is created by the caller's code?
Also, empty string results in empty array is the natural behaviour, I'm not sure why it's mentioned in the first place.
What is the sense of passing null instead of an empty string? If anything, the function should be called as playerManager(), which would more or less pass undefined, not null.
Very nice! I'll get it published.
Thanks for your contribution!
Added random tests in Ruby. Increased number of tests in Python and also improved the random generator.
Oh thank you! Yeah I'd be happy for the help :)
I'll try adding random tests myself if you don't mind.
Thanks for taking a look, I'm not sure exactly how to do random tests yet for this so I've taken them out for now until I can figure out a good way to do them!
Thanks for the feedback!
I see, sorry I'm still somewhat new and this is my first kata so any feedback is good feedback!
Thanks for the suggestions, I'll make the changes to the test cases!
Thanks for taking the time to translate!
This looks pretty good so I'll go ahead and publish it!
Just as I reported below ;-)