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 doesn't prevent calling it on non-tuples. Otherwise, this is essentially the right idea (and will work on the version of TS that's available on Codewars).
Unfortunately, it seems like several old kata are incompatible with >2.x and they are uninterested in updating until they are updated:
https://github.com/codewars/runner/issues/188
(Edit:) I added a note in the description that it should reject non-tuple inputs.
This comment is hidden because it contains spoiler information about the solution
Thanks! This should be fixed
You can pass a surprising number of tests (including the full sample test suite) if you have your row indices flipped. I'm not sure if this is intentional or not.
maybe, but what default would make sense here? the (implicit) default case here returns undefined, which i think is appropriate
Fixed, thanks