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.
logis is easy...
This solution will work but if you leave the parameter as empty it will return false but i considered that the input should be boolean so its not a big deal tho
it won't cause an error and will return same res as yours, is it not?
very nice solution!
But they are not booleans
doesn check for null, undefined so on...
No, it's not more concise, it's just as many lines of code. And it defines an extra function per instance instead of one per class.
This comment is hidden because it contains spoiler information about the solution
I might mention in the instructions that some new javascript object methods aren't interpreted correctly by babel on codewars -- but... you can paste in the polyfill from MDN (if available) to make it work.