Searched refs:fib (Results 1 – 2 of 2) sorted by relevance
130 var fib = function(n) { function131 return n < 2 ? n : fib(n - 1) + fib(n - 2);133 assert.equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');134 fib = _.memoize(fib); // Redefine `fib` for memoization135 assert.equal(fib(10), 55, 'a memoized version of fibonacci produces identical results');