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:
This comment is hidden because it contains spoiler information about the solution
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