millermedeiros/amd-utils — Issue #2: array/indexOf should limit fromIndex and allow negative index
Author: millermedeiros
Created: 2011-10-20 16:40:12+00:00
State: open

current implementation isn't ES5 compliant.

> **indexOf**
> The index at which to begin the search. Defaults to 0, i.e. the whole array will be searched. If the index is greater than or equal to
> the length of the array, -1 is returned, i.e. the array will not be searched. If negative, it is taken as the offset from the end of the
> array. Note that even when the index is negative, the array is still searched from front to back. If the calculated index is less than > 0, the whole array will be searched.

source: https://developer.mozilla.org/en/JavaScript/Reference/Global_Objects/Array/indexOf