Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Gets the index of the first occurrence of the specified value in a list.
Syntax
var number = list.indexOf(searchElement, fromIndex);
Parameters
searchElement
Type: ObjectThe value to locate in the list.
fromIndex
Type: NumberThe index at which to begin the search. If fromIndex is omitted, the search starts at index 0.
Return value
Type: Number
The index of the first occurrence of a value in a list or -1 if not found.
Requirements
Minimum WinJS version |
WinJS 1.0 |
Namespace |
WinJS.Binding |