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.
Also this
Almost duplicate
Needs random tests
Initial code is wrong (zero arguments???)
Could do with random tests.
I think this could be it. And I was almost certain my function was handling booleans correctly. (A link to my already submitted solution which required some monkey-patching to handle that final test case: https://www.codewars.com/kata/reviews/582b19b73166eb10c60000db/groups/5865778602698cadf40006f4)
But this is interesting because
typeof new Boolean() == 'object'
whereastypeof Boolean() == 'boolean'
. Definitely handy to know.Per MDN:
@docgunthrop, I got that too :( Try handling only plain object and Array :)
Passing all but the final test case. Is the input for that
{'bool': false}
?I get the following result:
I'm not sure what the expected result is supposed to be, based on the formatting. Is it expecting
{"bool":false}
? I'm asking because[Boolean: false]
does not appear to be valid syntax for any value types in JavaScript. When I test for{"bool":false}
in console, I get the same back (not an empty object literal as indicated by the kata's test results).Thanks a bunch for this feedback. I made some additions that address these concerns.
Thanks a bunch for the feedback. I made some updates to the kata to address these concerns.
👍
I've taken the liberty of fixing this.
Hope you don't mind.
Initial Setup
function name is wrong.Oh, it isn't in the docs. I learned it recently from someone else myself. :P
Awesome, I was looking for something like that. Must have missed it in the docs.
Thanks!
Loading more items...