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.
Finding specific keys in a nested structure is a duplicate to many existing katas.
Still no random tests.
Your not knowing how to do that is no reason to close that issue.
Why use
null
when an empty array[]
would have been more logical and consistent? Or just leave outchildren
entirely wherenull
. If you query for a value anyway, you'll getundefined
which is not exactly the same, but as good asnull
(and also not an array, so just as bad asnull
:).(Speaking of consistency, "motorcycle" should have been plural.)
It's a double. I can't immediately find it, but I've done this before. If someone could find that, please post it.
That probably means the best you can do is unpublish this and come up with a novel idea. Sorry if I sound harsh, and I'll give you that at least it's not the umpteenth Fibonacci kata, but CodeWars does not need endless identical kata.