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.
tbh, best practise would be to use a language with a proper strict type system if you want to be sure to avoid these issues. All else is a bandaid/workaround.
I agree, cuts out the truthy weirdness. In the 'long run'/'Big Picture' you shouldn't rely on truthy values.
What is
maintainability
andreadability
here? 0 being falsy is by language design, so anyone who's writing and reading JS should be expecting that.Well, I mean, maybe there's a liiiiiiittle bit of sacrifice? But it's so trivial it's highly likely to not matter in practice, and is definitely not as exaggerated as that.
Could you look into the updated error messages and close the issue? Thanks!