List.lastIndexOf method

This topic has not yet been rated - Rate this topic

Gets the index of the last occurrence of the specified value in a list.

Syntax


var number = list.lastIndexOf(searchElement, fromIndex);

Parameters

searchElement

Type: Object

The value to locate in the list.

fromIndex

Type: Number

The index at which to begin the search. If fromIndex is omitted, the search starts at the last index in the list.

Return value

Type: Number

The index of the last occurrence of a value in a list, or -1 if not found.

Requirements

Namespace

WinJS.Binding

Library

Base.js

See also

List

 

 

Build date: 12/5/2012

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.