List.indexOfKey method

0 out of 1 rated this helpful - Rate this topic

Gets the index of the first occurrence of a key in a list.

Syntax


var number = list.indexOfKey(key);

Parameters

key

Type: String

The key to locate in the list.

Return value

Type: Number

The index of the first occurrence of a key 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.