sutoiku/formula.js — pull request #19 by joaojeronimo (2014-07-29 15:23:17+00:00)
Title: flatten values in IRR formula

Multi dimensional values are also a valid argument for the IRR formula in Excel, they should be valid here as well and flattening the values argument will do the job. I also added a test for this that yields the same result as the same arguments in a uni dimensional array.