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.
Agree. A bit confusing description
I think the description is not complete. It should be written what is the depth of the object. There should be more examples.
I thought that the depth of this object
{a: {b: {d: 1}}, f: {t: 2}}
(for example) is 4, but then I realized, that the goal of this kata is to find the max depth of the object.This comment is hidden because it contains spoiler information about the solution
Thanks.
It should be specified in the Description that an
Array
has a depth of0
. The Example tests should not introduce new specs.null
is .. interesting, but I found out that primitiveString
s are as well, in the same way thatArray
s are. Well done!Why not include
undefined
in the possible values? And / or less standardObject
s likeSet
s,Map
s,Date
s andRegExp
s ? ( If you want to see the world burn, do something smart with aProxy
! :D )There are not tests about
ignores arrays
in the complete tests.i.e. This solution fails on it but can pass the final tests.