Array.prototype.indexOf typo

# James Graham (16 years ago)

Unless I am mistaken k is the current array index and n is the initial array index, so the step "Repeat while k < n" is a noop. I presume it should say "Repeat while k < length"

# Thomas L. Shinnick (16 years ago)

At 09:53 AM 4/8/2009, James Graham wrote:

Unless I am mistaken k is the current array index and n is the initial array index, so the step "Repeat while k < n" is a noop. I presume it should say "Repeat while k < length"

Yes, this was changed after the last errata.

15.4.4.14 Array.prototype.indexOf p.124 "9. Repeat, while k<n" --> "9. Repeat, while k<len"