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 solution is now invalid.
must have been before the ! ? test specs were up
How do you deal with ! or ?....
your function will return !ay and ?ay.
Wait, how about the symbol? You weren't check for that
This is quite neat, although I'm sceptical about having to calculate the length of the array through every iteration for performance reasons; better to cache the length:
https://stackoverflow.com/questions/5349425/whats-the-fastest-way-to-loop-through-an-array-in-javascript
http://jsben.ch/y3SpC