kriskowal/es5-shim — Issue #89: Array#filter should store `self[i]` in a variable before calling the callback.
Author: jdalton
Created: 2011-12-13 02:59:28+00:00
State: open

Array#filter should store `self[i]` in a variable before calling the callback in case the callback modifies that value so it can push the stored value, not the modified one, to the result.