jPaq Docs - Array.prototype.indexOf()

Quick Stats

Target Platforms:  PC (JScript) and the web (JavaScript)
Download Count:  769


Identifies the first position of the specified target element by using strict equality to find a match.


  1. target => Object
    The element to locate within the array.
  2. [start] => Number
    Optional. The index to start the search at. If this number is negative, it is taken as the offset from the end of the array. If omitted, this value defaults to zero.


If the target element is found, the first index of its match will be returned. If not, -1 is returned.