Please, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution entirely, about how to debug your code and if you're sure there is a problem, about how to properly post your code so it can be checked, there are more than 1000 solutions in js already, so it's a problem with your code.
This comment is hidden because it contains spoiler information about the solution
thanks!
Please, read this: https://github.com/codewars/codewars.com/wiki/Troubleshooting-your-solution entirely, about how to debug your code and if you're sure there is a problem, about how to properly post your code so it can be checked, there are more than 1000 solutions in js already, so it's a problem with your code.
The solution is correct, but when trying to pass all tests, the code does not run. JS
how to handle exception when array is [1, 2, 4, 5, 5]