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.
Don't. The point of this kata was exactly to use if statements and not built in finctions.
Wait, are you joking?
Yeah, I went another route.
Could you tell me where can I see the node versions on a kata?
How come Array.prototype.flat() is not a function? This doesn't make any sense.
Oh come on! I solved this in 59 lines of code, ternary operators, a ***** recursion and a bunch of
if
statements and spend an hour only to see this?good job tho.
Next level ****