emberjs/website — Issue #54: Better `forEach` example
Author: wagenet
Created: 2012-02-21 06:35:01+00:00
State: open

Right now the `forEach` section suggests that you do:

var array = [1,2,3];

array.forEach(array.removeObject, array);

However, this is a poor example since the array will actually not be emptied completely. This isn't a bug, but it is confusing.