jPaq Docs - Array.prototype.indexOf()

Quick Stats

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

Summary

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

Parameters

  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.

Returns

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