Your code does not throw an error / exception when any of the given inner array of the 2-dimensional array is not of length 2. One of such cases being:
Hello, I'm stuck on the solution of this Kata.
Basically I've solved, just I don't understand what kind of error this Kata expects from:
I used // throw new Error(""); but it seems to not be the solution expected by the author so any tips/ suggestion would be helpful
Your code does not throw an error / exception when any of the given inner array of the 2-dimensional array is not of length 2. One of such cases being:
Hello, I'm stuck on the solution of this Kata.
Basically I've solved, just I don't understand what kind of error this Kata expects from:
I used // throw new Error(""); but it seems to not be the solution expected by the author so any tips/ suggestion would be helpful
cheers