jashkenas/coffee-script — comment on commit c1d24944dc6918ac36dff3a34e89b3130566daa0
File: src/nodes.coffee line 1672
By jdalton:

Should prolly be something like:

~~~ js
for (var i = 0, l = this.length >>> 0; i < l; i++) if (i in this && this[i] === item) return i;
~~~