News for hackers. Stuff that matters.
Re:Indices Point Between Elements by marijn on Monday August 24, 2015 @03:49PM (#10112533)
And this is why JavaScript's `lastIndexOf` method gets it wrong, wrong, wrong. (`"foo".lastIndexOf("o", 2)` yields 2, whereas I, and probably a lot of other people, would expect it to be 1, with the search starting at the space between element 1 and 2)

There are no comments on this comment yet.