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.
Just do it in one line...
Nice kata! Thanks to everyone who contributed to it.
У меня длинее (
Love this code! So simple and to the point. Thank you.
L
boring and predictable solution: downvote
This comment is hidden because it contains spoiler information about the solution
tfu na teba pendos
This comment is hidden because it contains spoiler information about the solution
you're kidding me.
edit: this is beautiful btw.
Nice
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 meansbottom
. So it really depends on what this input validation is even supposed to mean. Is the input not provided, or is it abottom
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 asplayerManager()
, which would more or less passundefined
, notnull
.Passing
null
is an inappropriate construct from a different language ( C and friends seem to pass null pointers this way. it makes no sense in JavaScript though ).Added :)
Very nice! I'll get it published.
Loading more items...