Array.prototype.indexOf typo

James Graham jgraham at
Wed Apr 8 07:53:22 PDT 2009

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"

More information about the es-discuss mailing list