This is an example of not being precise enough when checking for a value in an object. I inadvertently caused this bug during a live coding exercise in a job interview, and spent a couple minutes debugging before I found it.
The exercise was to code up the Fibonnaci sequence, and I was doing a variation where
I memoized previously computed values of the sequence (dynamic programming). I had set
up an object to hold values of the sequence as key-value pairs, where the key is n
and the value is f(n).
I called the object fibMemo, and initialized it with the first two entries in the