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.
Really nice kata, well done.
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
Arrayhas a depth of0. The Example tests should not introduce new specs.nullis .. interesting, but I found out that primitiveStrings are as well, in the same way thatArrays are. Well done!Why not include
undefinedin the possible values? And / or less standardObjects likeSets,Maps,Dates andRegExps ? ( If you want to see the world burn, do something smart with aProxy! :D )There are not tests about
ignores arraysin the complete tests.i.e. This solution fails on it but can pass the final tests.