OMG so sad of me.... this is soo easy
Am array containning 2 elemet is great. Awesome
It is unfortunate that none of the top solutions use algebra to solve this, but all choose a brute force algorithm...
It is definitely a byproduct of the kata requiring the next highest pair even for false results.
This exposes a weakness in the tests. The logic is actually incorrect as other commenters have noted.
I had so much going on in mine, wrote out a whole function to calculate fibs,
Then built an array in the main function to prevent it from timing out on longer calculations.
But this just solves it in such a consise and easy to understand way.
This comment is hidden because it contains spoiler information about the solution
The array trick to solve the variable assignation is great.
"However, both spread (...) and apply will either fail or return the wrong result if the array has too many elements, because they try to pass the array elements as function parameters..."
So I didn't encourage to do it that way...still cool tho :)