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.
short and sweet!
For future reference, when posting a solution in a comment like that, mark your post as having spoiler content. Your post was visible in the homepage discourse. I've marked it for you this time.
This comment is hidden because it contains spoiler information about the solution
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.
Loading more items...