Write memoize(fn): a wrapper that caches results by arguments — first for Fibonacci, then for any function, including object arguments.
Write memoize(fn): a wrapper that caches results by arguments — first for Fibonacci, then for any function, including object arguments.
The discussion opens with the full question.