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.
Ahh I see, I think looking back I was trying to be more explicit about why I was returning 0. It totally makes sense to just say if theres not a length then do this. Thanks for the feedback man. Hope you enjoy your day as well.
If the value is falsy you can use the logical not operator.
ex:
if(!x.length) and sometimes (!x)
I remeber reading an article about it. I'll try to find it!
Enjoy your day.
Can you explain why?
Comparing with 0 is not best practice.