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.
I'm not disagreeing with you because I'm still learning JS, but as a programmer that seems wrong to me. Since you can't confirm what type the input will be, wouldn't it be best to check against undefined rather than your method? I mean again, it's clever - but would you really want to use it in production? Is it faster to make sure the input isn't falsy, AND use the code above?
Very clever, but is this a best practice? It's not immediately clear what's going on, whereas the other solutions are.
Doesn't give enough information on failed test cases, like the array passed in, what the result was, etc.
In hindsight, I didn't need to reverse the array, however I started off using .forEach rather than for, and kept the array reversed just... Because.