Array.prototype.indexOf typo
# 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"
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"