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.
This method is meant to simply convert a boolean value to an English string representation.
There is no requirement in the description to check that the value passed is actually boolean before returning a result.
I've made the instruction wording clearer.
Thanks for your feedback.
I've improved the test failure messages.
Thanks for your feedback.
This was a really enjoyable one, with a huge range of solutions.
The short solution is very cool. I'm so glad I know that method now :)
Oops, bad syntax in my test cases! Fixed and re-published.
Thanks for looking.
"Format a list of names"
Given: an array containing hashes of names
Return: a string of names separated by commas except for the last two names, which should be separated by an ampersand.
list([{name: 'Bart'},{name: 'Lisa'},{name: 'Maggie'}])
should return 'Bart, Lisa & Maggie'
list([{name: 'Bart'},{name: 'Lisa'}])
should return 'Bart & Lisa'
list([{name: 'Bart'}])
should return 'Bart'